diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/zutils.postrm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/zutils.postrm b/debian/zutils.postrm new file mode 100755 index 0000000..b9df41b --- /dev/null +++ b/debian/zutils.postrm @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove) + for FILE in zcat zcmp zdiff zegrep zfgrep zgrep + do + dpkg-divert --package zutils --quiet --remove --rename --divert /bin/${FILE}.gzip /bin/${FILE} + dpkg-divert --package zutils --quiet --remove --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz + done + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |