File: cdargs.emacsen-remove

package info (click to toggle)
cdargs 1.35-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 728 kB
  • sloc: cpp: 1,185; sh: 494; lisp: 70; makefile: 15; csh: 3
file content (20 lines) | stat: -rw-r--r-- 378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

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

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

echo remove/cdargs: purging byte-compiled files for ${FLAVOR}
rm -f ${elc_dir}/*.elc

if [ ${FLAVOR} != "emacs" ]; then
    rm -f ${elc_dir}/*.el
fi

if test -e ${elc_dir}; then
  rmdir --ignore-fail-on-non-empty ${elc_dir}
fi

exit 0;