File: sample-package-remove-foo

package info (click to toggle)
emacsen-common 3.0.8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 152 kB
  • sloc: perl: 425; sh: 87; lisp: 72; makefile: 26
file content (18 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (3)
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"

(cd "$elc_dir" && rm -f *.elc *.el install.log install.log.gz)

if test -e "$elc_dir"
then
    rmdir --ignore-fail-on-non-empty "$elc_dir"
fi

exit 0