postinst is in octave3.2-info 3.2.4-12.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #!/bin/sh
#
# postinst script for the Debian GNU/Linux octave package
#
# Initial version written by Andrew D. Fernandes <adfernan@cnd.mcgill.ca>
# This version written by Dirk Eddelbuettel <edd@debian.org>
set -e
# The current Octave version, known to debian/rules at build time
MAJOR=3.2
PRIORITY=80
case "$1" in
configure)
# The following is necessary to ensure a smooth upgrade from
# octave2.9_2.9.9-8etch1 (see Bug#489832)
for f in octave2.9 liboctave2.9 Octave2.9-FAQ ; do
install-info --quiet --remove $f;
done
install-info --quiet --section "Math" "Octave" \
--description="The GNU Octave ($MAJOR) language for numerical computations."\
/usr/share/info/octave$MAJOR.info.gz
install-info --quiet --section "Math" "Octave Library" \
--description="The GNU Octave ($MAJOR) C++ library."\
/usr/share/info/liboctave$MAJOR.info.gz
install-info --quiet --section "Math" "Octave FAQ" \
--description="The GNU Octave ($MAJOR) FAQ."\
/usr/share/info/Octave$MAJOR-FAQ.info.gz
for f in octave@v liboctave@v Octave@v-FAQ ; do
g=`echo $f | sed s/@v//`
h=`echo $f | sed s/@v/$MAJOR/`
update-alternatives --install \
/usr/share/info/$g.info.gz \
$g.info.gz \
/usr/share/info/$h.info.gz $PRIORITY
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
;;
esac
exit 0
|