File: emacsen-remove

package info (click to toggle)
emms 6.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,580 kB
  • sloc: lisp: 10,968; makefile: 101; cpp: 79; perl: 61; sh: 41; ansic: 40
file content (17 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/emms

FLAVOR=$1
PACKAGE=emms

ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}

echo "remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}"
if [ ${ELDIR} != ${ELCDIR} ]; then
    rm -rf $ELCDIR
# Handle 'emacs' flavor where .elc will be in the same directory as .el
else
    cd $ELCDIR
    rm -f *.elc install.log install.log.gz
fi