eps2eps.cmd 727 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* $Id: eps2eps.cmd,v 1.2 2000/12/30 18:45:37 alexcher Exp $ */
  2. /*
  3. * This file is maintained by a user: if you have any questions about it,
  4. * please contact Mark Hale (mark.hale@physics.org).
  5. */
  6. /* "Distill" Encapsulated PostScript. */
  7. parse arg params
  8. gs='@gsos2'
  9. if params='' then call usage
  10. options='-dNOPAUSE -dBATCH -dSAFER'
  11. /* extract options from command line */
  12. i=1
  13. param=word(params,i)
  14. do while substr(param,1,1)='-'
  15. options=options param
  16. i=i+1
  17. param=word(params,i)
  18. end
  19. infile=param
  20. if infile='' then call usage
  21. outfile=word(params,i+1)
  22. if outfile='' then call usage
  23. gs '-q -sDEVICE=epswrite -sOutputFile='outfile options infile
  24. exit
  25. usage:
  26. say 'Usage: eps2eps ...switches... input.eps output.eps'
  27. exit