pkgsrc/lang/gcc/INSTALL
jlam cd04e9997a Use bsd.pkg.install.mk, correct the PLISTs to refer to ${PKGNAME}.mk
(instead of hardcoding the version number), and general cleanups to the
Makefile to make this package easier to maintain.
2002-09-27 12:28:15 +00:00

27 lines
549 B
Text

#!/bin/sh
#
# Previous versions of the "gcc" package would install a corrupted
# info entry for "chill", which would foil subsequent installations.
# This script attempts to clean up that entry.
case ${STAGE} in
PRE-INSTALL)
if [ ! -w "${PKG_PREFIX}/info/dir" ]; then
exit 1
fi
if [ -x /bin/ed ]; then
${ECHO} "Fixing up info/dir from previous installation..."
/bin/ed "${PKG_PREFIX}/info/dir" 2> /dev/null << END
/^* Chill/d
w
q
END
if [ $? -eq 0 ]; then
${ECHO} "...fixed."
else
${ECHO} "...nothing to fix."
fi
fi
;;
esac