3
# prerm script for the Debian GNU/Linux octave package
5
# Written by Dirk Eddelbuettel <edd@debian.org>
9
# The current Octave version, known to debian/rules at build time
13
remove|upgrade|deconfigure)
15
# remove the /usr/local package, if we may
16
if [ -w /usr/local/share/octave/site-m ]
18
rmdir /usr/local/share/octave/site-m 2>/dev/null || true
19
rmdir /usr/local/share/octave 2>/dev/null || true
22
# remove the ls-R database for kpathsea
23
if [ -f /usr/share/octave/ls-R ]
25
rm -f /usr/share/octave/ls-R
28
# update-alternatives for multiple Octave versions
29
for f in octave octave-bug ; do
30
update-alternatives --remove $f /usr/bin/$f-$VERSION
37
echo "prerm called with unknown argument \`$1'" >&2