File: ada-mode.emacsen-remove

package info (click to toggle)
ada-mode 3.6-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 680 kB
  • ctags: 369
  • sloc: lisp: 6,447; makefile: 54; sh: 50
file content (33 lines) | stat: -rw-r--r-- 814 bytes parent folder | download
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
29
30
31
32
33
#!/bin/sh
#
# emacsen remove script for the Debian ada-mode package 
#
# Written by Dirk Eddelbuettel <edd@debian.org>   
#
# Modified by Rafael Laboissiere <rafael@icp.inpg.fr> 
# on Wed Oct 28 19:34:02 CET 1998   
# for the ada-mode Debian package
#
# Modified by James Morrison <phython@debian.org>
# on Sat Aug 3 10:30:00 EST 2002
# for the ada-mode Debian Package

set -e 

# Canadian spelling ;-)
flavour=$1

package=ada-mode
source=/usr/share/emacs/site-lisp/${package}
destination=/usr/share/${flavour}/site-lisp/${package}

if [ ${flavour} != emacs -a ${flavour} != emacs19 ]
then
    echo remove/${package}: Purging byte-compiled files for flavour ${flavour}
    rm -f ${destination}/*.elc
    rmdir ${destination} || true
else
    echo remove/${package}: Ignoring emacsen flavour ${flavour}
fi

exit 0;