Debian Codegraph @

debian/perlindex.postinst

raw
1 #! /bin/sh
2 # postinst script for perlindex
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 . /usr/share/debconf/confmodule
9
10 # summary of how this script can be called:
11 # * <postinst> `configure' <most-recently-configured-version>
12 # * <old-postinst> `abort-upgrade' <new version>
13 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
14 # <new-version>
15 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
16 # <failed-install-package> <version> `removing'
17 # <conflicting-package> <version>
18 # for details, see http://www.debian.org/doc/debian-policy/ or
19 # the debian-policy package
20 #
21
22 case "$1" in
23 configure)
24 if [ -z "$2" ]; then
25 echo -n "Generating index (this may take a while)..."
26 perlindex -index >/dev/null 2>&1
27 echo " done."
28 fi
29 ;;
30
31 abort-upgrade|abort-remove|abort-deconfigure)
32
33 ;;
34
35 *)
36 echo "postinst called with unknown argument \`$1'" >&2
37 exit 1
38 ;;
39 esac
40
41 # dh_installdeb will replace this with shell code automatically
42 # generated by other debhelper scripts.
43
44 #DEBHELPER#
45
46 exit 0