#! /bin/sh

if [ ! -w . ]; then
	echo "
You don't have write permission in the FrameMaker installation directory.
Therefore, you can't configure the LaserWriter fonts used by FrameMaker.
Please see your system administrator or the individual who installed the
FrameMaker software.
"
	exit 1
fi
cd fontdir
if [ -f fontlist.lwstd -a -f fontlist.lwpstd ]; then
	echo "
Both sets of fonts (LaserWriter and LaserWriter Plus) are installed
"
# link fontlist to the appropriate file
	echo
	echo "Type the number of the font set you want:"
	echo
	[ -f fontlist.lwstd ] &&  echo "	1. LaserWriter fonts"
	[ -f fontlist.lwpstd ] && echo "	2. LaserWriter Plus fonts"
	
	echo "
Use option 1 ONLY IF you have a LaserWriter (or equivalent printer with
only Times, Helvetica, Courier, and Symbol fonts) OR you wish to prohibit
access to the LaserWriter PLUS fonts (Avant Garde, Bookman, New Century
Schoolbook, Palatino, Zapf Chancery, and Zapf Dingbats).
"
	echo -n "Type the number of your choice [1]: "
	read answer
	file=fontlist.lwstd
	[ "$answer" = "2" ] && file=fontlist.lwpstd
	rm fontlist
	ln -s $file fontlist
	echo "Linked fontlist to $file."
	echo
else
	echo "
Since both LaserWriter and LaserWriter Plus fonts are not installed,
there is no font configuration to be done.
"
fi
