1
0
Fork 0
zutils/debian/zutils.postrm
Daniel Baumann b717ff9f7b
Adding debian version 0.2-1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-24 04:42:58 +01:00

26 lines
492 B
Bash

#!/bin/sh
set -e
case "${1}" in
remove)
for FILE in zgrep zcmp zdiff zcat
do
dpkg-divert --package zutils --remove --rename --divert /bin/${FILE}.gzip /bin/${FILE}
dpkg-divert --package zutils --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