1#! /bin/sh 2# 3# @(#)afmdit 1.2 03/24/88 4# 5# lib/ditroff.font/afmdit.bsd 6# 7# shell script to drive afm-file to ditroff font description conversion 8# Copyright (c) 1984,1985 Adobe Systems Incorporated. All Rights Reserved. 9# RCSID: $Header: afmdit.bsd,v 2.1 85/11/24 12:25:20 shore Rel $ 10 11DITFont=$1 12AFMDIR=$2 13 14PSFontName=`head -1 ${DITFont}.map` 15Special=`tail +2 ${DITFont}.map` 16 17echo "# $PSFontName" > $DITFont 18echo "name $DITFont" >> $DITFont 19echo "$Special" >> $DITFont 20rm -f temp.* 21awk -f afmdit.awk ${DITFont}.map $AFMDIR/${PSFontName}.afm 22cat temp.header temp.spaces temp.trailer >> $DITFont 23mv temp.aux ${DITFont}.aux 24rm -f temp.* 25