30,6 → 30,16 |
# `abort-remove' or `abort-deconfigure'. |
LOCAL_DIRS="lib/pike/modules lib/pike${PIKE}/modules lib/pike/include lib/pike${PIKE}/include" |
|
update_modules () { |
$PIKEBIN -x dump $@ -q -r /usr/lib/$PIKEBIN/modules |
find /usr/lib/$PIKEBIN/modules -name '*.o' | sed 's/.o$//' | |
while read f; do |
if [ ! -f $f ]; then |
rm -f $f.o |
fi |
done |
} |
|
case "$1" in |
configure) |
update-alternatives --install /usr/bin/pike pike /usr/bin/${PIKEBIN} 12 \ |
42,6 → 52,8 |
install -d -m 755 -o root -g root /usr/local/$d || true |
fi |
done |
|
update_modules |
;; |
|
abort-upgrade|abort-remove|abort-deconfigure) |
48,6 → 60,9 |
|
;; |
|
triggered) |
update_modules -u |
|
*) |
echo "postinst called with unknown argument \`$1'" >&2 |
exit 1 |