File: prerm

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 (24 lines) | stat: -rw-r--r-- 380 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
#!/bin/sh -e
#
# Debian package prerm
# Version 1.2
#
# Robert Leslie <rob@mars.org>

case "$1" in
    remove|upgrade|deconfigure)
	if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/tcputils ]; then
	    rm -f /usr/doc/tcputils
	fi
    ;;

    failed-upgrade)
    ;;

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

exit 0