postinst is in libfox-1.6-dev 1.6.49-2ubuntu1.
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 | #!/bin/sh
# postinst script for fox
#
# see: dh_installdeb(1)
set -e
vers=1.6
prio=16
if [ "$1" = "configure" ]; then
update-alternatives --install /usr/bin/fox-config fox-config \
/usr/bin/fox-config-${vers} ${prio} \
--slave /usr/share/man/man1/fox-config.1.gz fox-config.1.gz \
/usr/share/man/man1/fox-config-${vers}.1.gz
update-alternatives --install /usr/bin/reswrap reswrap \
/usr/bin/reswrap-${vers} ${prio} \
--slave /usr/share/man/man1/reswrap.1.gz reswrap.1.gz \
/usr/share/man/man1/reswrap-${vers}.1.gz
fi
exit 0
|