File: ctwm

package info (click to toggle)
menu 2.1.51
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,084 kB
  • sloc: cpp: 4,510; sh: 1,414; makefile: 225; perl: 104; ansic: 52
file content (32 lines) | stat: -rwxr-xr-x 817 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/install-menu
#   -*- mode: shell-script; -*-
#I need menu-1.4!
#
#NOTE: the first line of this script _must_ be
# equal to "#!/usr/bin/install-menu", otherwise update-menus
# will feed this script old-compat-mode data.
#
#More info: /usr/share/doc/menu/html.
#
compat="menu-1"

!include menu.h

compat="menu-2"

function f($com)="  \"" title() "\"    f.exec  \""$com " &\"\n";

#This doens't seem to be possible with twm:  wm="f.restart \"${title}\"\\n"
supported;
  x11= f($command);
  text=f(esc(term(),"\""));
endsupported;

startmenu=   "menu \"" $section "\"\n{\n";
endmenu=     "}\n";
submenutitle="  \"" title() "\" f.menu \"" $section "\"\n";
genmenu=      "menudefs.hook";
rcfile=       "system.ctwmrc";
examplercfile="system.ctwmrc-menu";
rootprefix=   "/etc/X11/ctwm/";
userprefix=   "/.ctwm/";