summaryrefslogtreecommitdiffstats
path: root/debian/parallel.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/parallel.postrm')
-rw-r--r--debian/parallel.postrm15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/parallel.postrm b/debian/parallel.postrm
new file mode 100644
index 0000000..876afe6
--- /dev/null
+++ b/debian/parallel.postrm
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then
+ dpkg-divert --package parallel --remove --rename \
+ --divert /usr/bin/parallel.moreutils \
+ /usr/bin/parallel
+ dpkg-divert --package parallel --remove --rename \
+ --divert /usr/share/man/man1/parallel.moreutils.1.gz \
+ /usr/share/man/man1/parallel.1.gz
+fi
+
+#DEBHELPER#
+
+exit 0