
# lib/ditroff.font/afmdit.sysv
#
# shell script to drive afm-file to ditroff font description conversion
# Copyright (c) 1984,1985 Adobe Systems Incorporated. All Rights Reserved.
# RCSID: $Header: afmdit.sysv,v 2.1 85/11/24 12:25:36 shore Rel $

PATH=$PATH:$PSLIBDIR
export PATH

DITFont=$1
AFMDIR=$2

PSFontName=`line <${DITFont}.map`
Special=`tail +2 ${DITFont}.map`

echo "# $PSFontName" > $DITFont
echo "name $DITFont" >> $DITFont
echo "$Special" >> $DITFont
rm -f temp.*
shortname=`map $PSFontName`
awk -f afmdit.awk ${DITFont}.map $AFMDIR/${shortname}.afm
cat temp.header temp.spaces temp.trailer >> $DITFont
mv temp.aux ${DITFont}.aux
