File: postinst

package info (click to toggle)
tcputils 0.6.2-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 188 kB
  • ctags: 109
  • sloc: ansic: 1,277; makefile: 100; sh: 46
file content (25 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
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
#!/bin/sh -e
#
# Debian package postinst
# Version 1.2
#
# Robert Leslie <rob@mars.org>

case "$1" in
    configure)
	if [ -d /usr/doc -a ! -e /usr/doc/tcputils -a -d /usr/share/doc/tcputils ]; then
	    ln -sf ../share/doc/tcputils /usr/doc/tcputils
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
       exit 0
    ;;

    *)
       echo "postinst called with unknown argument \`$1'" >&2
       exit 0
    ;;
esac

exit 0