#!/bin/sh
#
#  This file is part of the CJK package for LaTeX2e.
#
# $Id: getafm,v 1.4 1996/11/22 10:51:29 d791013 Exp $
#
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 printafm.ps quit.ps > $2.afm
fi
