summaryrefslogtreecommitdiff
path: root/debian/golang-mode.emacsen-remove
diff options
context:
space:
mode:
Diffstat (limited to 'debian/golang-mode.emacsen-remove')
-rw-r--r--debian/golang-mode.emacsen-remove15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/golang-mode.emacsen-remove b/debian/golang-mode.emacsen-remove
new file mode 100644
index 000000000..42231d3c9
--- /dev/null
+++ b/debian/golang-mode.emacsen-remove
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/golang-mode
+FLAVOR=$1
+PACKAGE=golang-mode
+
+# A number of old emacs versions are not supported by upstream:
+case $FLAVOR in
+ emacs|emacs19|emacs20|emacs21|xemacs21)
+ exit 0
+ ;;
+esac
+
+echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+exit 0