postinst is in tigervnc-viewer 1.7.0+dfsg-8ubuntu2.
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 | #!/bin/sh
set -e
if [ "$1" = "configure" ]; then
bindir=/usr/bin
mandir=/usr/share/man
for tiger in xtigervncviewer; do
notiger=`echo $tiger | sed -e 's/tiger//'`;
noxtiger=${notiger#x};
# Following conventions introduced in xvnc4viewer, xtightvncviewer
update-alternatives \
--install $bindir/$noxtiger $noxtiger $bindir/$tiger 80 \
--slave $bindir/$notiger $notiger $bindir/$tiger \
--slave $mandir/man1/$noxtiger.1.gz $noxtiger.1.gz $mandir/man1/$tiger.1.gz \
--slave $mandir/man1/$notiger.1.gz $notiger.1.gz $mandir/man1/$tiger.1.gz
done
fi
exit 0
|