| 1 | #!/bin/shscip-shell filesystem . . `/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="`dirnamescip-shell system . . dirname. \"$0\"`/$GS_EXECUTABLE" |
| 8 | if testscip-shell system . . test. ! -x "$gs"; then |
| 9 | gs="$GS_EXECUTABLE" |
| 10 | fi |
| 11 | GS_EXECUTABLE="$gs" |
| 12 | |
| 13 | if [scip-shell system . . `[`. $# -eq 2 ] |
| 14 | then |
| 15 | outfile=$2 |
| 16 | elif [scip-shell system . . `[`. $# -eq 1 ] |
| 17 | then |
| 18 | outfile=`basenamescip-shell system . . basename. "$1" \.pfb`.pfa |
| 19 | else |
| 20 | echoscip-shell system . . echo. "Usage: `basenamescip-shell system . . 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" |