File: emacsVER-bin-common.prerm

package info (click to toggle)
emacs21 21.4a%2B1-3etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 59,104 kB
  • ctags: 58,909
  • sloc: lisp: 493,229; ansic: 237,175; xml: 4,262; sh: 4,109; makefile: 2,479; perl: 1,069; cs: 776; asm: 254; csh: 9; sed: 4
file content (27 lines) | stat: -rw-r--r-- 502 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
#!/bin/sh

set -e

MAJOR=@MAJOR_VERSION@
MINOR=@MINOR_VERSION@
FULL=@FULL_VERSION@
INFOFILES="@INFOFILES@"
ALTERNATIVES="@ALTERNATIVES@"

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

# update-alternatives on things that collide with xemacs, other editors
if [ "$1" != "upgrade" ]
then
  for i in ${ALTERNATIVES}
  do
    test $i = emacs && continue
    update-alternatives --remove $i /usr/bin/$i.emacs${MAJOR}
  done
fi

#DEBHELPER#