File: emacsen-remove

package info (click to toggle)
dictionaries-common 1.30.10
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,120 kB
  • sloc: lisp: 5,514; perl: 3,161; makefile: 225; sh: 195
file content (25 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# emacsen remove script for the Debian GNU/Linux
# dictionaries-common package
#
# Written by Rafael Laboissiere <rafael@debian.org> and
# Agustin Martin <agmartin@debian.org> based on
# Dirk Eddelbuettel <edd@debian.org> script for the octave package.
# -----------------------------------------------------------------

set -e

# Canadian spelling ;-)
flavour=$1

package=dictionaries-common
destination=/usr/share/${flavour}/site-lisp/${package}

if [ -d $destination ]; then
    echo remove/${package}: Purging byte-compiled files for flavour ${flavour}
    rm -f ${destination}/*.elc ${destination}/*.el ${destination}/done ${destination}/.nosearch
    rmdir --ignore-fail-on-non-empty ${destination}
fi

exit 0;