File: postinst

package info (click to toggle)
ed 0.7-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,120 kB
  • ctags: 223
  • sloc: ansic: 2,384; sh: 534; makefile: 145
file content (15 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

case "$1" in
       configure|abort-upgrade|abort-remove|abort-deconfigure)
               #
               #       Install the info documentation
               #
	       install-info --section "General commands" "General commands" \
			    --quiet /usr/share/info/ed.info.gz
	       update-alternatives --quiet --install /usr/bin/editor editor /bin/ed -100 \
		  --slave /usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/ed.1.gz
               ;;
esac