1 #!/usr/bin/install-menu
3 # Generates Window Maker menus for all registered applications.
11 rootprefix="/etc/GNUstep/Defaults"
12 userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker/"
16 function mytitle()=replacewith(title(),"\"","'")
18 function exec($action,$com)= \
19 " \"" translate(,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 ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" MENU"), \
42 ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" END"), \