File: yatex.emacsen-remove

package info (click to toggle)
yatex 1.82-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,072 kB
  • sloc: lisp: 15,155; makefile: 194; ruby: 92; sh: 76
file content (31 lines) | stat: -rw-r--r-- 572 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
29
30
31
#!/bin/bash -e
#
# Copyright(c)1998 Hidenobu NABETANI <nabe@debian.or.jp>
#
# License: GPL2
# This program is written for Debian GNU/Linux YaTeX package.

PACKAGE=yatex

FLAVOR=$1
case $FLAVOR in
    *xemacs*|emacs2[0123]|emacs19|mule2)
    exit 0
    ;;
esac

ELCDIR=/usr/share/$FLAVOR/site-lisp/$PACKAGE/
LOG=CompilationLog

if [ ${FLAVOR} != emacs ]
    then
	echo -n "remove/$PACKAGE: Removing for $FLAVOR..."
        rm -f $ELCDIR/{*.elc,$LOG.gz,*.el}
        rmdir $ELCDIR || true
        echo "done."
fi
exit 0

### Local Variables:
### mode: shell-script
### End: