星火微课系统客户端
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 години
12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. # $Id: pfbtopfa 8107 2007-07-05 19:04:29Z till $
  3. # Convert .pfb fonts to .pfa format
  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. if [ $# -eq 2 ]
  13. then
  14. outfile=$2
  15. elif [ $# -eq 1 ]
  16. then
  17. outfile=`basename "$1" \.pfb`.pfa
  18. else
  19. echo "Usage: `basename $0` input.pfb [output.pfa]" 1>&2
  20. exit 1
  21. fi
  22. exec "$GS_EXECUTABLE" -q -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"