blob: 05e7382058b90b0a433f7526c6b938835e2ddd98 (
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
|
#!/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
|