File: postinst

package info (click to toggle)
gnuserv 3.12.8-12
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 832 kB
  • sloc: ansic: 5,138; lisp: 1,572; makefile: 419; sh: 268
file content (29 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (4)
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/bash -e

# $Id: postinst,v 1.3 2004/02/16 11:23:59 benj Exp $

# Borrowed from xterm postinst
trap "echo ;\
      echo 'Received signal. Aborting configuration of gnuserv package.';\
      echo ;\
      exit 1" 1 2 3 15

case $1 in
    configure)
	for i in gnuattach gnuclient gnudoit; do
	    update-alternatives --install /usr/bin/$i $i /usr/bin/$i.emacs 40 \
		--slave /usr/share/man/man1/$i.1.gz $i.1.gz \
		    /usr/share/man/man1/$i.emacs.1.gz
	done
	
	update-alternatives --install /usr/bin/editor editor /usr/bin/dtemacs 0 \
	    --slave /usr/share/man/man1/editor.1.gz editor.1.gz \
	    /usr/share/man/man1/dtemacs.1.gz

	;;

    *)
	;;
esac

#DEBHELPER#