diff options
author | joey <joey> | 1999-08-17 04:12:54 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:12:54 +0000 |
commit | 938b66ee19e113785e6655b1c3e73e9003e6464c (patch) | |
tree | d06bd22faa3da8940bec71ba2e34e2028b6e7764 /dh_installmenu | |
download | debhelper-938b66ee19e113785e6655b1c3e73e9003e6464c.tar.gz |
r1: Initial revision
Diffstat (limited to 'dh_installmenu')
-rwxr-xr-x | dh_installmenu | 24 |
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 |