
#!/bin/sh

# This script is intended to be run from the fixedfonts/Makefile.

# Argument $1 must be the full name of the installed DESC file.

if [ $# -ne 1 ]
then
	echo "usage: $0 full-path-name-of-DESC-file" 2>&1 
	exit 1
fi

DESCFILE="$1"

if [ `basename $DESCFILE` != "DESC" ] 
then
	echo "usage: $0 full-path-name-of-DESC-file" 2>&1 
	exit 1
fi

if [ -f $DESCFILE ] 
then
	if eval fgrep -i -s "DESC.typographic" $DESCFILE
	then
		exit 1  	# don't need to install the substitute fonts
	fi
fi

# if we got this far, then it is okay to install the substitute fonts
cp DESC.fixedfonts $DESCFILE
echo > .install_substitutes
