#ident	"@(#)olpkg.oam:dtclients/postinstall	1.6"
#	Copyright (c) 1990, 1991 UNIX System Laboratories, Inc.
#	Copyright (c) 1988 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
#	UNIX System Laboratories, Inc.
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.


#
#	Applications & Demos
#

PKGMSG=${PKG}.pkg
LOCALE=${LC_ALL:-${LC_MESSAGES:-${LANG:-"C"}}}

if [ ! -f /usr/lib/locale/${LOCALE}/LC_MESSAGES/${PKGMSG} ]
then
   if [ -f ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} -a \
	-d /usr/lib/locale/${LOCALE}/LC_MESSAGES ]
   then
	cp ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} \
	   /usr/lib/locale/${LOCALE}/LC_MESSAGES
   fi
fi

#
# now make sure fonts.dir is up-to-date
#

/usr/X/bin/mkfontdir /usr/X/lib/fonts/100dpi
/usr/X/bin/mkfontdir /usr/X/lib/fonts/75dpi
/usr/X/bin/mkfontdir /usr/X/lib/fonts/misc

#
# Now clean up
#
rm -rf /tmp/pkg > /dev/null 2>&1
exit ${errflag}
