#!/bin/sh
#
#ident  "@(#)postremove 1.2 94/12/15 SMI"
#
# Copyright (c) 1994 by Sun Microsystems, Inc.
#

# modify 75dpi/fonts.dir
FONTINSTDIR=usr/openwin/lib/X11/fonts/75dpi


if [ `/bin/uname -p` = "$ARCH" ] ; then
        EXEC_BASE=$BASEDIR
else
        EXEC_BASE=/
fi

if [ $EXEC_BASE != "/" ]; then
        LD_LIBRARY_PATH=$EXEC_BASE/usr/openwin/server/lib:$EXEC_BASE/usr/openwin/lib
        export LD_LIBRARY_PATH
fi

if [ ! -x $EXEC_BASE/usr/openwin/bin/mkfontdir ]
then
    # if mkfontdir doesn't exist we cannot proceed
    exit 2
fi


MKFONTDIR=$EXEC_BASE/usr/openwin/bin/mkfontdir

if [ -d $EXEC_BASE/$FONTINSTDIR -a -x $MKFONTDIR ]; then
	cd $EXEC_BASE/$FONTINSTDIR
	$MKFONTDIR . || exit 2
fi

exit 0
