summaryrefslogtreecommitdiff
path: root/debian/notmuch.emacsen-remove
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-11-28 18:30:43 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-11-28 21:11:47 -0500
commit3cb3d2c021b5c06bae9757400cc8c6b72db16531 (patch)
treed2cfbf2049c16898676d47fc7c638ec47db35e1a /debian/notmuch.emacsen-remove
parentceed83f805414cc780de4623336d4c68ea438a46 (diff)
first crack at debian packaging (using git-buildpackage)
Diffstat (limited to 'debian/notmuch.emacsen-remove')
-rw-r--r--debian/notmuch.emacsen-remove15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/notmuch.emacsen-remove b/debian/notmuch.emacsen-remove
new file mode 100644
index 0000000..e19ee3d
--- /dev/null
+++ b/debian/notmuch.emacsen-remove
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/notmuch
+
+FLAVOR=$1
+PACKAGE=notmuch
+
+if [ ${FLAVOR} != emacs ]; then
+ if test -x /usr/sbin/install-info-altdir; then
+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/#PACKAGE#.info.gz
+ fi
+
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi