summaryrefslogtreecommitdiff
path: root/debian/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/prerm')
-rw-r--r--debian/prerm25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 000000000..88bf16954
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ (remove|deconfigure)
+ update-alternatives --remove zsh /bin/zsh4
+ update-alternatives --remove rzsh /bin/zsh4
+ update-alternatives --remove ksh /bin/zsh4
+ rmdir /usr/local/share/zsh/site-functions || true
+ rmdir /usr/local/share/zsh || true
+ ;;
+ (upgrade)
+ ;;
+
+ (failed-upgrade)
+ ;;
+
+ (*)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 0
+ ;;
+esac
+
+exit 0