File: postrm.in

package info (click to toggle)
auctex 9.9p-13
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,328 kB
  • ctags: 761
  • sloc: lisp: 11,769; makefile: 197
file content (47 lines) | stat: -rw-r--r-- 1,276 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "variables"
#!/bin/bash -e
#
# postrm configuration file for Debian <:=$PACKAGE:> package.
# $Id: postrm.in,v 1.4 1999/10/31 22:01:57 salve Exp $
#
<:=@COPYRIGHT:>//

set -o posix

case "$1" in
    abort-install|abort-upgrade|failed-upgrade|remove|upgrade)
    <:# abort-install ${2:oldver}
      # (if $2 conffiles were there, or, if there aren't any)
      # abort-install
      # (undo preinst install effects):>//
    <:# abort-upgrade ${2:oldver}
      # (undo preinst upgrade effects):>//
    <:# failed-upgrade ${2:oldver}
      # (fix old postrm  bugs):>//
    <:# remove
      # (dregistered files have been removed, clean up):>//
    <:# upgrade ${2:newver}
      # (old prerm upgrade and new preinst upgrade have been called, clean up):>//
	:
    ;;
    disappear|purge)
    <:# disappear ${2:overwriter}
      # (dregistered files and conffiles have been overwritten, clean up):>//
    <:# purge
      # (dregistered files and conffiles have been purged, clean up):>//
	<:# purge package from debconf database:>//
	if test -e <:=$CONFMODULE:>;
	    then source <:=$CONFMODULE:>; db_version 2.0; db_purge
	fi
    ;;
    *)
	echo "${0##*/}: Called with unknown argument \`$1'." >&2
    ;;
esac

exit 0
<:
# Local Variables:
# mode: shell-script
# End:
:>//