debian/systemtap-common.emacsen-remove
raw| 1 | #!/bin/sh |
| 2 | # /usr/lib/emacsen-common/packages/remove/systemtap-common |
| 3 | set -e |
| 4 | PACKAGE=systemtap-common |
| 5 | |
| 6 | FLAVOR=$1 |
| 7 | elc_dir=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} |
| 8 | |
| 9 | case "${FLAVOR}" in |
| 10 | emacs) |
| 11 | ;; |
| 12 | *) |
| 13 | echo remove/${PACKAGE}: Purging byte-compiled files for ${FLAVOR} |
| 14 | rm -f ${elc_dir}/*.elc ${elc_dir}/*.el |
| 15 | rmdir ${elc_dir} || true |
| 16 | ;; |
| 17 | esac |
| 18 | |
| 19 | exit 0; |