File: emacsen-remove

package info (click to toggle)
gforth 0.7.0+ds2-0.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,808 kB
  • sloc: ansic: 8,506; sh: 3,660; lisp: 1,783; makefile: 993; yacc: 186; sed: 141; lex: 102; awk: 21
file content (28 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (2)
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
26
27
28
#!/bin/sh
#
# emacsen remove script for the Debian GNU/Linux
# gforth 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

# Do nothing for dummy 'emacs' flavour
if [ ${flavour} = emacs ]; then exit 0; fi

package=gforth
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
    rmdir --ignore-fail-on-non-empty ${destination}
fi

exit 0;