1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

Add debianisation code and automatic build script

This commit is contained in:
Martin Dietze
2009-08-24 10:20:05 +02:00
committed by Carlos R. Mafra
parent 19f110d26e
commit 442e3876c6
42 changed files with 9969 additions and 0 deletions

45
debian/wmaker.menu-method vendored Normal file
View File

@@ -0,0 +1,45 @@
#!/usr/bin/install-menu
#
# Generates Window Maker menus for all registered applications.
!include menu.h
compat="menu-1";
outputencoding="UTF-8"
genmenu="menu.hook"
rootprefix="/etc/X11/WindowMaker/"
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker/"
treewalk="(M)"
rootsection="/Debian"
function mytitle()=replacewith(title(),"\"","'")
function exec($action,$com)= \
" \"" mytitle() "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n"
supported
x11= exec("SHEXEC",$command)
wm= exec("RESTART",$command)
text= exec("SHEXEC",term())
wmaker= exec("",$command ifnempty($arg," " $arg))
endsupported
preoutput= "/* Automatically generated file. Do not edit (see /usr/share/doc/menu/menu.txt.gz) */\n\n#include \"wmmacros\"\n"
mainmenutitle=""
submenutitle= ""
startmenu= "\n" \
ifelse( \
title(), \
"\"" mytitle() "\" MENU", \
"Debian MENU\n\n#include <menu.prehook>" \
) \
"\n"
endmenu= ifelse( \
title(), \
"\"" mytitle() "\" END", \
"\n#include <menu.posthook>\n\nDebian END" \
) \
"\n"