eps2eps.bat 577 B

1234567891011121314151617181920212223242526
  1. @echo off
  2. @rem $Id: eps2eps.bat,v 1.7 2002/02/21 21:49:28 giles Exp $
  3. @rem "Distill" Encapsulated PostScript.
  4. if %1/==/ goto usage
  5. if %2/==/ goto usage
  6. call gssetgs.bat
  7. echo -dNOPAUSE -dBATCH -dSAFER >_.at
  8. rem Watcom C deletes = signs, so use # instead.
  9. echo -dDEVICEWIDTH#250000 -dDEVICEHEIGHT#250000 >>_.at
  10. :cp
  11. if %3/==/ goto doit
  12. echo %1 >>_.at
  13. shift
  14. goto cp
  15. :doit
  16. rem Watcom C deletes = signs, so use # instead.
  17. %GSC% -q -sDEVICE#epswrite -sOutputFile#%2 @_.at %1
  18. if exist _.at erase _.at
  19. goto end
  20. :usage
  21. echo "Usage: eps2eps ...switches... input.eps output.eps"
  22. :end