3
# postinst script for the Debian GNU/Linux octave2.0 package
5
# Initial version written by Andrew D. Fernandes <adfernan@cnd.mcgill.ca>
6
# This version written by Dirk Eddelbuettel <edd@debian.org>
10
# The current Octave version, known to debian/rules at build time
17
# create /usr/local/ directory, if we may
18
install -d /usr/local/share/octave/site-m \
19
-m 2775 -o root -g staff 2>/dev/null || true
21
# if it exists, update the ls-R database for kpathsea
22
if [ -d /usr/local/share/octave/ ]
24
ls -LR /usr/lib/octave/ /usr/share/octave \
25
/usr/local/share/octave > /usr/share/octave/ls-R
27
ls -LR /usr/lib/octave/ /usr/share/octave > /usr/share/octave/ls-R
30
# update-alternatives for multiple Octave versions
31
for f in octave octave-bug ; do
33
--install /usr/bin/$f $f \
34
/usr/bin/$f-$VERSION $PRIORITY \
35
--slave /usr/share/man/man1/$f.1.gz $f.1.gz \
36
/usr/share/man/man1/$f-$VERSION.1.gz
40
abort-upgrade|abort-remove|abort-deconfigure)
43
echo "postinst called with unknown argument \`$1'" >&2