星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 4 години
123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. # $Id: ps2ps 9344 2009-01-10 22:11:18Z till $
  3. # "Distill" PostScript.
  4. # This definition is changed on install to match the
  5. # executable name set in the makefile
  6. GS_EXECUTABLE=gs
  7. gs="`dirname $0`/$GS_EXECUTABLE"
  8. if test ! -x "$gs"; then
  9. gs="$GS_EXECUTABLE"
  10. fi
  11. GS_EXECUTABLE="$gs"
  12. OPTIONS="-dSAFER"
  13. while true
  14. do
  15. case "$1" in
  16. -?*) OPTIONS="$OPTIONS $1" ;;
  17. *) break ;;
  18. esac
  19. shift
  20. done
  21. if [ $# -ne 2 ]; then
  22. echo "Usage: `basename $0` [options] input.ps output.ps" 1>&2
  23. echo " e.g. `basename $0` -sPAPERSIZE=a4 input.ps output.ps" 1>&2
  24. exit 1
  25. fi
  26. exec "$GS_EXECUTABLE" -q -sDEVICE=pswrite -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"