This file is indexed.

postinst is in gnuplot-x11 4.6.6-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
#!/bin/sh

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
    update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot4-x11 30 \
      --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
      /usr/share/man/man1/gnuplot4-x11.1.gz

    update-alternatives --install /usr/bin/gnuplot4 gnuplot4 /usr/bin/gnuplot4-x11 30 \
      --slave /usr/share/man/man1/gnuplot4.1.gz gnuplot4.1.gz \
      /usr/share/man/man1/gnuplot4-x11.1.gz \
      --slave /usr/share/gnuplot/gnuplot.gih gnuplot4.gih \
      /usr/share/gnuplot/gnuplot4-x11.gih
fi

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section