postinst is in gnuplot5-x11 5.0.3+dfsg2-1.
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 | #!/bin/sh
set -e
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot5-x11 60 \
--slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
/usr/share/man/man1/gnuplot5-x11.1.gz \
--slave /usr/share/gnuplot5/gnuplot.gih gnuplot5.gih \
/usr/share/gnuplot5/gnuplot5-x11.gih
update-alternatives --install /usr/bin/gnuplot5 gnuplot5 /usr/bin/gnuplot5-x11 60 \
--slave /usr/share/man/man1/gnuplot5.1.gz gnuplot5.1.gz \
/usr/share/man/man1/gnuplot5-x11.1.gz
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|