The following commit has been merged in the master branch:
commit feacbb07b9d746765f9607b6790d8f658e40dbf5
Author: Gerfried Fuchs <[EMAIL PROTECTED]>
Date:   Thu Jul 10 22:59:51 2008 +0200

    maintainer script hooks for menu and doc-base

diff --git a/debian/postinst b/debian/postinst
index df06dd2..a54827b 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -7,6 +7,10 @@ if [ "$1" != configure ]; then
        exit 0
 fi
 
-if [ -x /usr/bin/update-menus ]; then
+if [ -x "`which update-menus 2>/dev/null`" ]; then
        update-menus
 fi
+
+if [ -x "`which install-docs 2>/dev/null`" ] ; then
+       install-docs -i /usr/share/doc-base/2h4u-help
+fi
diff --git a/debian/postrm b/debian/postrm
index 3226629..caff004 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -3,6 +3,6 @@
 # copyright 2008 by Gerfried Fuchs <[EMAIL PROTECTED]>
 # Licenced the same way as 2h4u itself
 
-if [ -x /usr/bin/update-menus ]; then
+if [ -x "`which update-menus 2>/dev/null`" ]; then
        update-menus
 fi
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..cc70fe8
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+# prerm script for 2h4u
+# copyright 2008 by Gerfried Fuchs <[EMAIL PROTECTED]>
+# Licenced the same way as 2h4u itself
+
+if [ "$1" = remove ] || [ "$1" = upgrade ] && \
+    [ -x "`which install-docs 2>/dev/null`" ]; then
+       install-docs -r 2h4u-help
+fi

-- 
Packaging for TooHardForYou

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to