#! /bin/sh
#
# lib/ditroff.font/afmdit.bsd
#
# shell script to drive afm-file to ditroff font description conversion
# Copyright (c) 1984,1985 Adobe Systems Incorporated. All Rights Reserved.
# GOVERNMENT END USERS: See Notice file in TranScript library directory
# -- probably /usr/lib/ps/Notice
# RCSID: $Header: /afs/dev.mit.edu/source/src80/third/unsupported/transcript-v2.1/lib/ditroff.font/RCS/afmdit,v 1.1 1994/09/18 05:39:00 cfields Exp $

DITFont=$1
AFMDIR=$2

PSFontName=`head -1 ${DITFont}.map`
Special=`tail +2 ${DITFont}.map`

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