]> git.notmuchmail.org Git - notmuch/blob - debian/notmuch-emacs.emacsen-remove
emacs: generate notmuch-pkg.el
[notmuch] / debian / notmuch-emacs.emacsen-remove
1 #!/bin/sh
2 # /usr/lib/emacsen-common/packages/remove/notmuch
3
4 set -e
5
6 FLAVOR=$1
7 PACKAGE=notmuch
8 elc_dir=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
9
10 case "${FLAVOR}" in
11     emacs)
12         return 0
13         ;;
14     xemacs*|emacs2[12])
15         # patches welcome.
16         echo install/${PACKAGE}: skipping removal for unsupported emacsen flavor ${FLAVOR}
17         exit 0
18         ;;
19     *)
20         echo remove/${PACKAGE}: Handling removal for emacsen flavor ${FLAVOR}
21 esac
22
23 echo remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR}
24
25 echo emacsen-common: purging byte-compiled files for ${FLAVOR}
26 rm -f ${elc_dir}/*.elc
27 rm -f ${elc_dir}/*.el
28 rm -f ${elc_dir}/Install.log*
29 if test -e "${elc_dir}"
30 then
31   rmdir --ignore-fail-on-non-empty "${elc_dir}"
32 fi
33
34 exit 0;