File: emacsVER-bin-common.postinst

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 (29 lines) | stat: -rw-r--r-- 727 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
#!/bin/sh -e

FLAVOR=@DEB_FLAVOR@
MAJOR=@MAJOR_VERSION@
MINOR=@MINOR_VERSION@
FULL=@FULL_VERSION@
ALTERNATIVES="@ALTERNATIVES@"
BIN_PRIORITY=@BIN_PRIORITY@

# update-alternatives on things that collide with xemacs, other editors
for i in ctags etags emacsclient
do
  update-alternatives \
    --install /usr/bin/$i $i /usr/bin/$i.${FLAVOR} ${BIN_PRIORITY} \
    --slave /usr/share/man/man1/$i.1.gz $i.1.gz \
            /usr/share/man/man1/$i.1${FLAVOR}.gz 
done

for i in ${ALTERNATIVES}
do
  test $i = ctags && continue
  test $i = etags && continue
  test $i = emacs && continue
  test $i = emacsclient && continue
  update-alternatives --install /usr/bin/$i $i /usr/bin/$i.${FLAVOR} \
    ${BIN_PRIORITY}
done

#DEBHELPER#