home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / bin / pfbtopfa < prev    next >
Encoding:
Text File  |  2005-11-16  |  392 b   |  21 lines

  1. #!/bin/sh
  2. # $Id: pfbtopfa,v 1.5 2002/02/21 21:49:28 giles Exp $
  3. # Convert .pfb fonts to .pfa format
  4. gs="`dirname $0`/gs"
  5. if test ! -x "$gs"; then
  6.     gs=gs
  7. fi
  8.  
  9. if [ $# -eq 2 ] 
  10. then
  11.     outfile=$2
  12. elif [ $# -eq 1 ]
  13. then
  14.     outfile=`basename "$1" \.pfb`.pfa
  15. else
  16.     echo "Usage: `basename $0` input.pfb [output.pfa]" 1>&2
  17.     exit 1
  18. fi
  19.  
  20. exec "$gs" -q -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"
  21.