summaryrefslogtreecommitdiff
path: root/lang/gcc/INSTALL
blob: 5a6d8972dec1a2cdadb69d7838b970ee564108e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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