星火微课系统客户端
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.

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. # $Id: eps2eps 9344 2009-01-10 22:11:18Z till $
  3. # "Distill" Encapsulated 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="-dDEVICEWIDTH=250000 -dDEVICEHEIGHT=250000"
  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` ...switches... input.eps output.eps" 1>&2
  23. exit 1
  24. fi
  25. exec "$GS_EXECUTABLE" -q -sDEVICE=epswrite -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH -dSAFER $OPTIONS "$1"