File: postinst

package info (click to toggle)
the 3.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,452 kB
  • ctags: 5,268
  • sloc: ansic: 63,118; sh: 2,399; makefile: 444
file content (12 lines) | stat: -rw-r--r-- 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

if [ -x /usr/bin/update-menus ] ; then update-menus ; fi

update-alternatives --quiet --install /usr/bin/editor editor /usr/bin/the 10\
  --slave /usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/the.1.gz

if [ "$1" = "configure" ]; then
 if [ -d /usr/doc -a ! -e /usr/doc/the -a -d /usr/share/doc/the ]; then
  ln -sf ../share/doc/the /usr/doc/the
 fi
fi