#!/bin/sh

EXEC_BASE=/usr
export EXEC_BASE

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

# SUNWcxoft ( Chinese/PRC X Windows Optional Fonts Package ) postremove script.

FONTINSTDIR=$BASEDIR/openwin/lib/locale/zh/X11/fonts
export FONTINSTDIR

for i in Type3 composite; do
	if [ -d $FONTINSTDIR/$i ]; then
		cd $FONTINSTDIR/$i
		rm -f fonts.dir
		$EXEC_BASE/openwin/bin/mkfontdir .
	fi
done

exit 0
