File: postinst.in

package info (click to toggle)
mimefilter 1.7+nmu2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 168 kB
  • ctags: 20
  • sloc: perl: 197; makefile: 21
file content (40 lines) | stat: -rw-r--r-- 1,039 bytes parent folder | download | duplicates (3)
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
#include "variables"
#!/bin/bash -e
#
# postinst configuration file for Debian <:=${PACKAGE}:> package.
# $Id: postinst.in,v 1.3 2002/09/27 13:04:51 salve Exp $
#
<:=@COPYRIGHT:>//

set -o posix

case "${1}" in
    (abort-remove|abort-upgrade|configure)
    <:# abort-remove in-favour ${3:newpkg} ${4:newver}
      # (undo prerm remove in-favour ${3} ${4}):>//
    <:# abort-upgrade ${2:newver}
      # (undo prerm upgrade ${2}):>//
    <:# configure ${2:lastconfver}
      # (or, if there wasn't an old version at all)
      # configure ${2=""|"<unknow>"}
      # (or, if dpkg version is very old)
      # configure
      # (dregistered files and conffiles have been installed):>//
	:
    ;;
    (abort-deconfigure)
    <:# abort-deconfigure in-favour ${3:newpkg} ${4:newver} removing ${6:oldpkg} ${7:oldver}
      # (undo prerm deconfigure in-favour ${3} ${4} removing ${6} ${7}):>//
	:
    ;;
    (*)
	echo >&2 "${0##*/}: Called with unknown argument \`${1}'."
    ;;
esac

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