handle menu files
authormirabilos <t.glaser@tarent.de>
Sun, 3 Dec 2017 00:20:09 +0000 (01:20 +0100)
committermirabilos <t.glaser@tarent.de>
Sun, 3 Dec 2017 00:20:09 +0000 (01:20 +0100)
debian/.gitignore
debian/rules

index 36b8595..016a4dc 100644 (file)
@@ -1,4 +1,6 @@
 .*_stamp
 compat
 control
+joe-jupp.menu
+jupp.menu
 source/format
index b52ae3c..2b82adb 100755 (executable)
@@ -123,6 +123,7 @@ SUBST_EP:=          -e '/@PRIO@EXTRA@/d'
 HOMEPAGE:=             https://www.mirbsd.org/jupp.htm
 SUBST_HP:=             -e '/@HP@DOT@/d' -e '/@HP@OLD@/d' -e 's\ 1@HP@MODERN@\ 1${HOMEPAGE}\ 1'
 SELINUX_DEP:=          libselinux1-dev [linux-any]
+MENU_SUBST:=           cat
 
 ifneq (,$(findstring lenny,${DEB_BUILD_OPTIONS}))
 DEBHELPER_VERSION:=    5
@@ -138,6 +139,7 @@ DEBHELPER_VERSION:= 4
 SELINUX_DEP:=          libselinux1-dev
 SUBST_HP:=             -e '/@HP@MODERN@/d' -e '/^VCS-[gB][ir][to][:w]/d' \
                        -e 's/@HP@DOT@//' -e 's\ 1@HP@OLD@\ 1${HOMEPAGE}\ 1'
+MENU_SUBST:=           sed 's!"Applications/!"Apps/!'
 endif
 
 DSC_DEPS:=             debhelper (>= ${DEBHELPER_VERSION})
@@ -282,6 +284,8 @@ debian/.control_stamp:
        fi)
        echo '${DSF}' >debian/source/format
        echo ${DEBHELPER_VERSION} >debian/compat
+       ${MENU_SUBST} <debian/joe-jupp.menu.in >debian/joe-jupp.menu
+       ${MENU_SUBST} <debian/jupp.menu.in >debian/jupp.menu
        sed ${SUBST_EP} ${SUBST_HP} \
            $(foreach v,${SUBST_VARS},-e 's\ 1@@'$(call shellescape,$v)'@@\ 1'$(call shellescape,$(strip ${$v}))'\ 1') \
            <debian/control.in >debian/.gencontrol_stamp