home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / bin / pfbtopfa < prev    next >
Encoding:
Text File  |  2006-11-28  |  450 b   |  21 lines

  1. #!/bin/sh
  2. # $Id: pfbtopfa 6300 2005-12-28 19:56:24Z giles $
  3. # Convert .pfb fonts to .pfa format
  4.  
  5. # This definition is changed on install to match the
  6. # executable name set in the makefile
  7. GS_EXECUTABLE=gs
  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_EXECUTABLE -q -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"
  21.