#! /bin/sh
if [ -z "$1" ]; then
  echo "\nUsage: $0 [fontname .afm-outputfile]\n"
  echo " e.g: getafm FunSong22 b5fs22\n"
  echo "    then b5fs22.afm will be created."
  exit 1
else
  gs -q -dNODISPLAY -dFNAME=/$1 getafm.ps quit.ps > $2.afm
fi
