chiark / gitweb /
move configure stuff under configure case; don't make usr/doc symlink
authoraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Sat, 7 Dec 2002 06:21:51 +0000 (06:21 +0000)
committeraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Sat, 7 Dec 2002 06:21:51 +0000 (06:21 +0000)
git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@1958 313b444b-1b9f-4f58-a734-7bb04f332e8d

debian/postinst

index 63b4f9d..8c19b58 100644 (file)
@@ -4,11 +4,13 @@ set -e
 
 case "$1" in
     configure)
-        # continue below
+        if [ -x /usr/sbin/install-docs ]; then
+            /usr/sbin/install-docs -i /usr/share/doc-base/developers-reference
+        fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
-        exit 0
+        :
     ;;
 
     *)
@@ -17,14 +19,4 @@ case "$1" in
     ;;
 esac
 
-if [ "$1" = "configure" ]; then
-  if [ -d /usr/doc -a ! -e /usr/doc/developers-reference -a -d /usr/share/doc/developers-reference ]; then
-    ln -sf ../share/doc/developers-reference /usr/doc/developers-reference
-  fi
-fi
-
-if [ -x /usr/sbin/install-docs ]; then
-    /usr/sbin/install-docs -i /usr/share/doc-base/developers-reference
-fi
-
 exit 0