You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
583 B

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