Debian Codegraph @

debian/mwm.menu-method

raw
1 #!/usr/bin/install-menu
2 # -*- mode: shell-script; -*-
3 #I need menu-1!
4 #
5 #NOTE: the first line of this script _must_ be
6 # equal to "#!/usr/sbin/install-menu", otherwise update-menus
7 # will feed this script old-compat-mode data.
8 #
9 #More info: /usr/share/doc/menu/README.
10 #
11 compat="menu-1"
12
13 !include menu.h
14
15 function mwmcommon($c)=\
16 "\t\"" esc(title(),"\\\"") "\"\tf.exec \"" esc($c,"\\\"") " &\"\n"
17
18 supported
19 x11 =mwmcommon($command)
20 text=mwmcommon(term())
21 endsupported
22 startmenu= "Menu \"" $section "\"\n{\n\t\"" \
23 ifelse(title(),title(),"Debian") "\"\tf.title\n"
24 endmenu= "}\n"
25 submenutitle=" \"" title() "\" f.menu \"" $section "\"\n"
26 genmenu= "menudefs.hook"
27 rcfile= "system.mwmrc"
28 examplercfile="system.mwmrc-menu"
29 rootprefix= "/etc/X11/mwm/"
30 userprefix= "/.mwm/"