File: postinst

package info (click to toggle)
the 3.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,132 kB
  • ctags: 4,916
  • sloc: ansic: 63,656; sh: 1,566; makefile: 439
file content (12 lines) | stat: -rw-r--r-- 372 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/man/man1/editor.1.gz editor.1.gz /usr/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