author | herrick |
Tue, 15 Oct 2019 13:44:36 -0400 | |
branch | JDK-8200758-branch |
changeset 58607 | 7451b17b40d3 |
parent 58301 | e0efb29609bd |
permissions | -rw-r--r-- |
57038 | 1 |
#!/bin/sh |
58301
e0efb29609bd
8225249 : LinuxDebBundler and LinuxRpmBundler should share more code
herrick
parents:
57808
diff
changeset
|
2 |
# prerm script for APPLICATION_PACKAGE |
57038 | 3 |
# |
4 |
# see: dh_installdeb(1) |
|
5 |
||
6 |
set -e |
|
7 |
||
8 |
# summary of how this script can be called: |
|
9 |
# * <prerm> `remove' |
|
10 |
# * <old-prerm> `upgrade' <new-version> |
|
11 |
# * <new-prerm> `failed-upgrade' <old-version> |
|
12 |
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> |
|
13 |
# * <deconfigured's-prerm> `deconfigure' `in-favour' |
|
14 |
# <package-being-installed> <version> `removing' |
|
15 |
# <conflicting-package> <version> |
|
58607
7451b17b40d3
8231912: Use https for URLs in help and error messages
herrick
parents:
58301
diff
changeset
|
16 |
# for details, see https://www.debian.org/doc/debian-policy/ or |
57038 | 17 |
# the debian-policy package |
18 |
||
19 |
||
58301
e0efb29609bd
8225249 : LinuxDebBundler and LinuxRpmBundler should share more code
herrick
parents:
57808
diff
changeset
|
20 |
UTILITY_SCRIPTS |
e0efb29609bd
8225249 : LinuxDebBundler and LinuxRpmBundler should share more code
herrick
parents:
57808
diff
changeset
|
21 |
|
57038 | 22 |
case "$1" in |
23 |
remove|upgrade|deconfigure) |
|
58301
e0efb29609bd
8225249 : LinuxDebBundler and LinuxRpmBundler should share more code
herrick
parents:
57808
diff
changeset
|
24 |
DESKTOP_COMMANDS_UNINSTALL |
57038 | 25 |
;; |
26 |
||
27 |
failed-upgrade) |
|
28 |
;; |
|
29 |
||
30 |
*) |
|
31 |
echo "prerm called with unknown argument \`$1'" >&2 |
|
32 |
exit 1 |
|
33 |
;; |
|
34 |
esac |
|
35 |
||
36 |
exit 0 |
|
37 |