Debian Codegraph @

debian/cdargs.emacsen-remove

raw
1 #!/bin/sh
2 set -e
3
4 FLAVOR=$1
5 elc_dir=/usr/share/${FLAVOR}/site-lisp/cdargs/
6
7 echo remove/cdargs: Handling removal of emacsen flavor ${FLAVOR}
8
9 echo remove/cdargs: purging byte-compiled files for ${FLAVOR}
10 rm -f ${elc_dir}/*.elc
11
12 if [ ${FLAVOR} != "emacs" ]; then
13 rm -f ${elc_dir}/*.el
14 fi
15
16 if test -e ${elc_dir}; then
17 rmdir --ignore-fail-on-non-empty ${elc_dir}
18 fi
19
20 exit 0;