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 / dumphint < prev    next >
Encoding:
Text File  |  2005-07-31  |  481 b   |  26 lines

  1. #!/bin/sh
  2. # $Id: dumphint,v 1.2 2004/08/04 00:55:46 giles Exp $
  3. # Linearized PDF hint formatting utility.
  4.  
  5. # This definition is changed on install to match the
  6. # executable name set in the makefile
  7. GS_EXECUTABLE=gs
  8.  
  9.  
  10. OPTIONS="-dSAFER -dDELAYSAFER"
  11. while true
  12. do
  13.     case "$1" in
  14.     -*) OPTIONS="$OPTIONS $1" ;;
  15.     *)  break ;;
  16.     esac
  17.     shift
  18. done
  19.  
  20. if [ $# -ne 1 ]; then
  21.     echo "Usage: `basename $0` input.pdf" 1>&2
  22.     exit 1
  23. fi
  24.  
  25. exec $GS_EXECUTABLE -q -dNODISPLAY $OPTIONS -- dumphint.ps "$1"
  26.