1 #!/usr/bin/install-menu
3 # Generates Window Maker menus for all registered applications.
10 rootprefix="/etc/X11/WindowMaker/"
11 userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker/"
16 function mytitle()=replacewith(title(),"\"","'")
18 function exec($action,$com)= \
19 " \"" mytitle() "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n"
22 x11= exec("SHEXEC",$command)
23 wm= exec("RESTART",$command)
24 text= exec("SHEXEC",term())
25 wmaker= exec("",$command ifnempty($arg," " $arg))
28 preoutput= "/* Automatically generated file. Do not edit (see /usr/share/doc/menu/menu.txt.gz) */\n\n#include \"wmmacros\"\n"
36 "\"" mytitle() "\" MENU", \
37 "Debian MENU\n\n#include <menu.prehook>" \
42 "\"" mytitle() "\" END", \
43 "\n#include <menu.posthook>\n\nDebian END" \