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.

24 lines
516 B

1 month ago
  1. #!/bin/sh
  2. # Convert .pfb fonts to .pfa format
  3. # This definition is changed on install to match the
  4. # executable name set in the makefile
  5. GS_EXECUTABLE=gs
  6. gs="`dirname \"$0\"`/$GS_EXECUTABLE"
  7. if test ! -x "$gs"; then
  8. gs="$GS_EXECUTABLE"
  9. fi
  10. GS_EXECUTABLE="$gs"
  11. if [ $# -eq 2 ]
  12. then
  13. outfile=$2
  14. elif [ $# -eq 1 ]
  15. then
  16. outfile=`basename "$1" \.pfb`.pfa
  17. else
  18. echo "Usage: `basename \"$0\"` input.pfb [output.pfa]" 1>&2
  19. exit 1
  20. fi
  21. exec "$GS_EXECUTABLE" -q -P- -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"