chiark / gitweb /
chapter titles need caps
[developers-reference.git] / debian / postinst
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6     configure)
7         # continue below
8     ;;
9
10     abort-upgrade|abort-remove|abort-deconfigure)
11         exit 0
12     ;;
13
14     *)
15         echo "postinst called with unknown argument \`$1'" >&2
16         exit 0
17     ;;
18 esac
19
20 if [ "$1" = "configure" ]; then
21   if [ -d /usr/doc -a ! -e /usr/doc/developers-reference -a -d /usr/share/doc/developers-reference ]; then
22     ln -sf ../share/doc/developers-reference /usr/doc/developers-reference
23   fi
24 fi
25
26 if [ -x /usr/sbin/install-docs ]; then
27     /usr/sbin/install-docs -i /usr/share/doc-base/developers-reference
28 fi
29
30 exit 0