File: emacsVER-common.prerm

package info (click to toggle)
emacs21 21.4a%2B1-5.6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 59,052 kB
  • ctags: 58,903
  • sloc: lisp: 493,229; ansic: 237,171; xml: 4,262; sh: 4,108; makefile: 2,418; perl: 1,069; cs: 776; asm: 254; csh: 9; sed: 4
file content (26 lines) | stat: -rw-r--r-- 551 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
#!/bin/sh

set -e

MAJOR=@MAJOR_VERSION@
MINOR=@MINOR_VERSION@
FULL=@FULL_VERSION@
INFO_FILES="@INFO_FILES@"
INFO_SUBDIR="@INFO_SUBDIR@"

if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
then
  rm -f /usr/doc/@PKG_NAME@
fi

for file in ${INFO_FILES}
do
  install-info --quiet --remove-exactly ${INFO_SUBDIR}/${file} || true
done

# emacsen-common/emacs-remove used to be here.

(rmdir /usr/local/share/emacs/${FULL}/site-lisp 2>/dev/null && \
 rmdir /usr/local/share/emacs/${FULL}           2>/dev/null) || true

#DEBHELPER#