pfbtopfa 454 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # $Id: pfbtopfa,v 1.6 2004/08/04 00:55:46 giles Exp $
  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. if [ $# -eq 2 ]
  8. then
  9. outfile=$2
  10. elif [ $# -eq 1 ]
  11. then
  12. outfile=`basename "$1" \.pfb`.pfa
  13. else
  14. echo "Usage: `basename $0` input.pfb [output.pfa]" 1>&2
  15. exit 1
  16. fi
  17. exec $GS_EXECUTABLE -q -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"