cd04e9997a
(instead of hardcoding the version number), and general cleanups to the Makefile to make this package easier to maintain.
27 lines
549 B
Text
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
|
|
|