@echo off if not exist patch.wad goto install if not exist dmgraph.exe goto install if not exist wad2lmp.exe goto install if not exist %1.gif goto usage copy patch.wad temp.wad > nul dmgraph patch -s %1.gif -f temp.wad wad2lmp temp.wad %1.lmp del temp.wad goto end :usage echo Usage: doomtex [gifname] (no extensions) echo Note: this uses a temporary file temp.wad! goto end :install echo DoomTex not properly installed! echo Read the file doomtex.doc goto end :end