chiark / gitweb /
why even have a case stmt -- strip it down more
[developers-reference.git] / debian / postinst
index 07288138f41bf14c2be5a3a9fba669a68305bef9..fa127e9bd635bcb051a83d82ca98654a15893979 100644 (file)
@@ -2,23 +2,10 @@
 
 set -e
 
-case "$1" in
-    configure)
-        # continue below
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-        exit 0
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-if [ -x /usr/sbin/install-docs ]; then
-    /usr/sbin/install-docs -i /usr/share/doc-base/developers-reference
-    /usr/sbin/install-docs -i /usr/share/doc-base/debian-constitution
+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