File: sample-package-remove-foo

package info (click to toggle)
emacsen-common 1.4.22
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 116 kB
  • ctags: 30
  • sloc: perl: 194; sh: 110; lisp: 108; makefile: 80
file content (18 lines) | stat: -rw-r--r-- 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/foo
# [ Sample only -- this script hasn't been tested, so be careful. ]
set -e

FLAVOR=$1
elc_dir=/usr/share/${FLAVOR}/site-lisp/foo

echo remove/foo: Handling removal of emacsen flavor ${FLAVOR}

if [ ${FLAVOR} != emacs ]
then
  echo emacsen-common: purging byte-compiled files for ${FLAVOR}
  rm -f ${elc_dir}/*.elc
  rm -f ${elc_dir}/*.el         # Install might have been interrupted.
  rmdir --ignore-fail-on-non-empty ${elc_dir}
fi
exit 0;