pkgsrc/lang/gcc/INSTALL
2003-03-28 21:24:22 +00:00

26 lines
548 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