xref: /plan9/sys/src/cmd/gs/lib/pfbtopfa (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
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
5# This definition is changed on install to match the
6# executable name set in the makefile
7GS_EXECUTABLE=gs
8
9if [ $# -eq 2 ]
10then
11    outfile=$2
12elif [ $# -eq 1 ]
13then
14    outfile=`basename "$1" \.pfb`.pfa
15else
16    echo "Usage: `basename $0` input.pfb [output.pfa]" 1>&2
17    exit 1
18fi
19
20exec $GS_EXECUTABLE -q -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"
21