File: emacs-bin-common.postinst.in

package info (click to toggle)
emacs 1%3A27.1%2B1-3.1%2Bdeb11u5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 158,192 kB
  • sloc: lisp: 1,165,237; ansic: 345,121; objc: 17,368; sh: 7,080; makefile: 6,130; cpp: 1,851; yacc: 1,566; perl: 1,265; xml: 1,138; php: 1,035; pascal: 1,011; python: 998; cs: 770; ada: 725; awk: 669; ruby: 401; javascript: 181; erlang: 153; java: 47
file content (17 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

ALTERNATIVES="@ALTERNATIVES@"
BIN_PRIORITY="@BIN_PRIORITY@"

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

#DEBHELPER#