chiark / gitweb /
why even have a case stmt -- strip it down more
authoraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Sat, 7 Dec 2002 06:34:47 +0000 (06:34 +0000)
committeraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Sat, 7 Dec 2002 06:34:47 +0000 (06:34 +0000)
git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@1960 313b444b-1b9f-4f58-a734-7bb04f332e8d

debian/postinst

index 8c19b58..fa127e9 100644 (file)
@@ -2,21 +2,10 @@
 
 set -e
 
-case "$1" in
-    configure)
-        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)
-        :
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
+if [ "$1" = "configure" ]; then
+    if [ -x /usr/sbin/install-docs ]; then
+        /usr/sbin/install-docs -i /usr/share/doc-base/developers-reference
+    fi
+fi
 
 exit 0