File: remove.in

package info (click to toggle)
mailcrypt 3.5.5-6.2
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 696 kB
  • ctags: 331
  • sloc: lisp: 4,142; sh: 170; makefile: 97; perl: 36
file content (33 lines) | stat: -rw-r--r-- 622 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
#include "variables"
#!/bin/bash -e
#
# elisp remove file for Debian <:=$PACKAGE:> package.
# $Id: remove.in,v 1.4 1999/12/12 22:05:13 salve Exp $
#
<:=@COPYRIGHT:>//

set -o posix

FLAVOR=$1

case "$FLAVOR" in
    emacs)
	:
    ;;
    emacs19|emacs20|mule2)
	echo -n "remove/<:=$PACKAGE:>: Removing for $FLAVOR... "
	rm -f <:=if($_=$lisp)=~s|emacs|\$FLAVOR|:>/{*.elc,<:=$ELCLOG:>.gz}
	rmdir --ignore-fail-on-non-empty <:=if($_=$lisp)=~s|emacs|\$FLAVOR|:>
	echo "done."
    ;;
    *)
	echo "remove/<:=$PACKAGE:>: Ignoring emacsen flavor $FLAVOR."
    ;;
esac

exit 0
<:
# Local Variables:
# mode: shell-script
# End:
:>//