postinst is in tachyon-bin-ogl 0.99~b6+dsx-8.
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 | #!/bin/sh
set -e
VARIANT=ogl
add_variant_alternative () {
local variant=$1
local priority=$2
update-alternatives \
--install /usr/bin/tachyon tachyon /usr/bin/tachyon-${variant} $priority \
--slave /usr/share/man/man1/tachyon.1.gz tachyon.1.gz /usr/share/man/man1/tachyon-${variant}.1.gz
return 0
}
case $VARIANT in
nox) add_variant_alternative nox 10 ;;
ogl) add_variant_alternative ogl 100 ;;
*) echo "unknown variant \'${VARIANT}': skip" >&2 ;;
esac
exit 0
|