c788cdc7d8
since I'm most familiar with the hack to include the LessTif X11 config files. Relevant changes from version 0.91.8: * Build/Install Uil libs and Headers (and tests) by default. * Fixed some FontList interfaces to conform to the docs. Might fix memory leaks as well. * Ongoing work to use ANSI C89 as much as possible. Drop alternatives being used (e.g. bcopy() and friends) * The Motif 2.x Xme() funcs should now all exist in stubs at least; some had already been "implemented" earlier. * Build support for a Motif 2.1 compatible tree. This will soon replace the 2.0 tree. * Work in progres for creating XmPrint API. (2.1 functionality)
41 lines
693 B
Bash
41 lines
693 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: DEINSTALL,v 1.2 2000/12/22 17:26:22 jlam Exp $
|
|
|
|
PKGNAME=$1
|
|
STAGE=$2
|
|
|
|
LOCALBASE="@LOCALBASE@"
|
|
|
|
CP="@CP@"
|
|
GREP="@GREP@"
|
|
RM="@RM@"
|
|
RMDIR="@RMDIR@"
|
|
TRUE="@TRUE@"
|
|
|
|
case ${STAGE} in
|
|
DEINSTALL)
|
|
;;
|
|
|
|
POST-DEINSTALL)
|
|
X11_HOSTDEF=${PKG_PREFIX}/lib/X11/config/host.def
|
|
|
|
echo -n "Updating ${X11_HOSTDEF}..."
|
|
${CP} -f ${X11_HOSTDEF} ${X11_HOSTDEF}.bak
|
|
( ${GREP} -v LessTif ${X11_HOSTDEF}.bak || ${TRUE} ) \
|
|
> ${X11_HOSTDEF}
|
|
echo "done."
|
|
|
|
if [ ${PKG_PREFIX} != ${LOCALBASE} ]
|
|
then
|
|
${RM} -f ${LOCALBASE}/share/aclocal/ac_find_motif.m4
|
|
${RMDIR} -p ${PKG_PREFIX}/share/aclocal 2>/dev/null || ${TRUE}
|
|
fi
|
|
;;
|
|
|
|
*)
|
|
echo "Unexpected argument: ${STAGE}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
exit 0
|