home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / linux / puppy-barebones-2.01r2.iso / pup_201.sfs / usr / bin / eps2eps < prev    next >
Encoding:
Text File  |  2005-07-31  |  557 b   |  25 lines

  1. #!/bin/sh
  2. # $Id: eps2eps,v 1.6 2004/08/04 00:55:46 giles Exp $
  3. # "Distill" Encapsulated PostScript.
  4.  
  5. # This definition is changed on install to match the
  6. # executable name set in the makefile
  7. GS_EXECUTABLE=gs
  8.  
  9. OPTIONS="-dDEVICEWIDTH=250000 -dDEVICEHEIGHT=250000"
  10. while true
  11. do
  12.     case "$1" in
  13.     -*) OPTIONS="$OPTIONS $1" ;;
  14.     *)  break ;;
  15.     esac
  16.     shift
  17. done
  18.  
  19. if [ $# -ne 2 ]; then
  20.     echo "Usage: `basename $0` ...switches... input.eps output.eps" 1>&2
  21.     exit 1
  22. fi
  23.  
  24. exec $GS_EXECUTABLE -q -sDEVICE=epswrite "-sOutputFile=$2" -dNOPAUSE -dBATCH -dSAFER $OPTIONS "$1"
  25.