]> git.notmuchmail.org Git - notmuch/blobdiff - debian/notmuch-emacs.emacsen-remove
debian: split off emacs interface into its own package.
[notmuch] / debian / notmuch-emacs.emacsen-remove
diff --git a/debian/notmuch-emacs.emacsen-remove b/debian/notmuch-emacs.emacsen-remove
new file mode 100755 (executable)
index 0000000..184c2b6
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/notmuch-emacs
+
+FLAVOR=$1
+PACKAGE=notmuch
+
+if [ ${FLAVOR} != emacs ]; then
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi