This file is indexed.

postinst is in tgif 1:4.2.5-1.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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh -e

# Source debconf library.
. /usr/share/debconf/confmodule

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


default_file=/etc/default/tgif

# Get debconf answers
db_get tgif/papersize
papersize=$RET
db_get tgif/gridunits
gridunits=$RET
case $papersize in
    A4)     paper="21cm x 29.7cm" ;;
    Letter) paper="8.5in x 11in" ;;
esac

case $1 in
   abort-upgrade|abort-remove|abort-deconfigure ) 
   exit 0
   ;;
   configure|reconfigure )
   if [ -f $default_file ]
   then
       sed '/^! START debconf/,+5 d' $default_file
   else
       touch $default_file
   fi
   echo "! START debconf block - DO NOT EDIT" >>$default_file
   echo "! " >>$default_file
   echo "Tgif*InitialPaperSize: $paper" >>$default_file
   echo "Tgif*GridSystem: $gridunits" >>$default_file
   echo "!" >>$default_file
   echo "! END debconf block" >>$default_file
   ;;
   * )
   echo "postinst called with unknown argument \`$1'" >&2
   exit 1
   ;;
esac