#!/bin/sh
#	Avery Wang
#	email: avery@ccrma.stanford.edu
#	March 29, 1993

# This is a script to extract the fonts from the NeXT's font libraries
# into a format suitable for ghostscript to use

echo '/Ugly				(uglyr.gsf)	;' >/usr/local/lib/ghostscript/Fontmap

ls /NextLibrary/Fonts |grep '.*\.font$' \
| sed -e 's/\(\(.*\)\.font\)/\/\2	(\/NextLibrary\/Fonts\/\1\/\2) ;/g' \
>> /usr/local/lib/ghostscript/Fontmap

ls /LocalLibrary/Fonts |grep '.*\.font$' \
| sed -e 's/\(\(.*\)\.font\)/\/\2	(\/LocalLibrary\/Fonts\/\1\/\2) ;/g' \
>> /usr/local/lib/ghostscript/Fontmap

