Debian Codegraph @

lib/pfbtopfa

raw symbols SCIP
1 #!/bin/sh
2 # Convert .pfb fonts to .pfa format
3
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
13 if [ $# -eq 2 ]
14 then
15 outfile=$2
16 elif [ $# -eq 1 ]
17 then
18 outfile=`basename "$1" \.pfb`.pfa
19 else
20 echo "Usage: `basename \"$0\"` input.pfb [output.pfa]" 1>&2
21 exit 1
22 fi
23
24 exec "$GS_EXECUTABLE" -q -P- -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"