#!/bin/sh

#instnextfont 
# gets the location of the fonts directory and installs the Next fonts.

if [ "$INSTALLARCH" = NeXT -o "$INSTALLARCH" = NeXT-Intel -o "$INSTALLARCH" = NeXT-SPARC -o "$INSTALLARCH" = NeXT-HP ]; then

   if [ !  -f  "$ITMPDIR/NextFontLocation" ]; then
       exit 1
   else

#  copy the files

    dir=`cat $ITMPDIR/NextFontLocation`
    cp $TARGET/SystemFiles/Fonts/NeXT/* $dir 2>$ITMPDIR/Errors
    buildafmdir $dir  2> $ITMPDIR/Errors 

   fi

else
exit 1
fi
