home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 May / macformat_103_may_2001.iso / Shareware / Utilities / MacGhostView Folder / ghostscript / gs6.01 / lib / ps2ps.bat < prev    next >
Encoding:
DOS Batch File  |  2000-11-21  |  417 b   |  23 lines  |  [TEXT/R*ch]

  1. @echo off 
  2. @rem $Id: ps2ps.bat,v 1.1 2000/03/09 08:40:40 lpd Exp $
  3. @rem "Distill" PostScript.
  4.  
  5. if "%1"=="" goto usage
  6. if "%2"=="" goto usage
  7. echo -dNODISPLAY -dNOPAUSE -dBATCH >_.at
  8. :cp
  9. if "%3"=="" goto doit
  10. echo %1 >>_.at
  11. shift
  12. goto cp
  13.  
  14. :doit
  15. rem Watcom C deletes = signs, so use # instead.
  16. gs -q -sDEVICE#pswrite -sOutputFile#%2 @_.at %1
  17. goto end
  18.  
  19. :usage
  20. echo "Usage: ps2ps ...switches... input.ps output.ps"
  21.  
  22. :end
  23.