pkgsrc/lang/pgcc/INSTALL
wiz 36b7c5af00 Pull over gcc package files from before the 2.95.3 update.
Compiles and installs/deinstalls cleanly on 1.5ZA/i386, otherwise untested,
but that's better than a BROKEN package.
Some cleanup.
2002-03-14 14:54:48 +00:00

37 lines
659 B
Text

#!/bin/sh
#
# Prior 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.
if [ $# -ne 2 -o ! -d "${PKG_PREFIX}" -o ! -w "${PKG_PREFIX}/info/dir" ]
# Script was called improperly.
then
exit 1
fi
if [ "$2" != "PRE-INSTALL" ]
# No problem
then
exit 0
fi
if [ ! -x /bin/ed ]
# Who knows? Give up.
then
exit 0
fi
echo Fixing up infodir from previous installation\.\.\.
/bin/ed "${PKG_PREFIX}/info/dir" 2> /dev/null << END
/^* Chill/d
w
q
END
if [ $? -eq 0 ]
then
\.\.\.fixed\.
exit 0
fi
echo \.\.\.nothing to fix\.
exit 0