postinst is in evolver-nox 2.70+ds-3.
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 | #!/bin/sh
set -e
add_variant_alternative () {
local variant=$1
local priority=$2
update-alternatives \
--install /usr/bin/evolver evolver /usr/bin/evolver-${variant} $priority \
--slave /usr/share/man/man1/evolver.1.gz evolver.1.gz /usr/share/man/man1/evolver-${variant}.1.gz
return 0
}
for VARIANT in nox-d nox-ld nox-q; do
case $VARIANT in
nox-q) PRIORITY=20 ;;
nox-ld) PRIORITY=40 ;;
nox-d) PRIORITY=80 ;;
ogl-q) PRIORITY=120 ;;
ogl-ld) PRIORITY=140 ;;
ogl-d) PRIORITY=180 ;;
*) echo "unknown variant \'${VARIANT}': skip" >&2 ;;
esac
add_variant_alternative $VARIANT $PRIORITY
done
exit 0
|