#! /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/sipb.mit.edu/project/sipb-athena/repository/src/transcript/lib/ditroff.font/afmdit,v 1.1 1996/06/02 08:02:56 ghudson 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.*
