1@echo off
2@rem "Distill" Encapsulated PostScript.
3
4if %1/==/ goto usage
5if %2/==/ goto usage
6call "%~dp0gssetgs.bat"
7echo -dNOPAUSE -dBATCH -P- -dSAFER >"%TEMP%\_.at"
8rem Watcom C deletes = signs, so use # instead.
9echo -dDEVICEWIDTH#250000 -dDEVICEHEIGHT#250000 >>"%TEMP%\_.at"
10:cp
11if %3/==/ goto doit
12echo %1 >>"%TEMP%\_.at"
13shift
14goto cp
15
16:doit
17rem Watcom C deletes = signs, so use # instead.
18%GSC% -q -sDEVICE#eps2write -sOutputFile#%2 @"%TEMP%\_.at" %1
19if exist "%TEMP%\_.at" erase "%TEMP%\_.at"
20goto end
21
22:usage
23echo "Usage: eps2eps ...switches... input.eps output.eps"
24
25:end
26