This file is indexed.

postinst is in gprolog 1.3.0-6.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
22
23
24
25
26
#!/bin/sh -e

# -- Prolog variant ---------
LIB=/usr/lib/gprolog-iso
VARIANT=iso
# ---------------------------


case "$1" in
configure)

  # -- setup the regular "gprolog" alternatives --------------------------
  update-alternatives						\
    --install /usr/bin/gprolog gprolog ${LIB}/bin/gprolog 10	\
      --slave /usr/bin/gplc    gplc    ${LIB}/bin/gplc		\
      --slave /usr/bin/hexgplc hexgplc ${LIB}/bin/hexgplc	\
      --slave /usr/include/gprolog gprolog-inc ${LIB}/include

  # -- create a plain "prolog" command alternative -----------------------
  update-alternatives						\
    --install /usr/bin/prolog prolog ${LIB}/bin/gprolog 10	\
    --slave							\
      /usr/share/man/man1/prolog.1.gz prolog.1.gz		\
      /usr/share/man/man1/gprolog.1.gz
  ;;
esac