[SCM] Packaging for TooHardForYou branch, master, updated. debian/1.3-1-19-g22e5561
Gerfried Fuchs
rhonda at debian.at
Thu Jul 10 21:41:06 UTC 2008
The following commit has been merged in the master branch:
commit feacbb07b9d746765f9607b6790d8f658e40dbf5
Author: Gerfried Fuchs <rhonda at debian.at>
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 <rhonda at debian.at>
# 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 <rhonda at debian.at>
+# 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
More information about the Pkg-games-commits
mailing list