File: prerm.in

package info (click to toggle)
mimefilter 1.7%2Bnmu1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 168 kB
  • ctags: 20
  • sloc: perl: 197; makefile: 21
file content (36 lines) | stat: -rw-r--r-- 796 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
#include "variables"
#!/bin/bash -e
#
# prerm configuration file for Debian <:=${PACKAGE}:> package.
# $Id: prerm.in,v 1.3 2002/09/27 13:05:11 salve Exp $
#
<:=@COPYRIGHT:>//

set -o posix

case "${1}" in
    (failed-upgrade|deconfigure)
    <:# failed-upgrade ${2:oldver}
      # (fix old prerm from version ${2} bugs here):>//
    <:# deconfigure in-favour ${3:newpkg} ${4:newver} removing ${6:oldpkg} ${7:oldver}:>//
	<:# remove emacs startup file if present:>//
	:
    ;;
    (remove|upgrade)
    <:# remove
      # (or, in case of conflict with newpkg)
      # remove in-favour ${3:newpkg} ${4:newver}:>//
    <:# upgrade ${2:newver}:>//
	:
    ;;
    (*)
	echo >&2 "${0##*/}: Called with unknown argument \`${1}'."
    ;;
esac

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