summaryrefslogtreecommitdiff
path: root/dh_installmenu
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:12:54 +0000
committerjoey <joey>1999-08-17 04:12:54 +0000
commit938b66ee19e113785e6655b1c3e73e9003e6464c (patch)
treed06bd22faa3da8940bec71ba2e34e2028b6e7764 /dh_installmenu
downloaddebhelper-938b66ee19e113785e6655b1c3e73e9003e6464c.tar.gz
r1: Initial revision
Diffstat (limited to 'dh_installmenu')
-rwxr-xr-xdh_installmenu24
1 files changed, 24 insertions, 0 deletions
diff --git a/dh_installmenu b/dh_installmenu
new file mode 100755
index 00000000..26798c29
--- /dev/null
+++ b/dh_installmenu
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+#
+# Integration with debian menu system:
+#
+# If debian/menu file exists, save it to debian/tmp/usr/lib/menu/$PACKAGE
+# If debian/menu-method file exists, save it to
+# debian/tmp/etc/menu-methods/$PACKAGE
+
+PATH=debian:$PATH:/usr/lib/debhelper
+source dh_lib
+
+if [ -e debian/menu ]; then
+ if [ ! -d debian/tmp/usr/lib/menu ]; then
+ doit "install -d debian/tmp/usr/lib/menu"
+ fi
+ doit "install -p -m644 debian/menu debian/tmp/usr/lib/menu/$PACKAGE"
+fi
+
+if [ -e debian/menu-method ]; then
+ if [ ! -d debian/tmp/etc/menu-methods ]; then
+ doit "install -d debian/tmp/etc/menu-methods"
+ fi
+ doit "install -p debian/menu-method debian/tmp/etc/menu-methods/$PACKAGE"
+fi