Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 863510db852808a8964c710861c24c75 > files > 67

XFree86-compat-3.3.6-26mdk.src.rpm

#!/usr/sbin/install-menu
#   -*- mode: shell-script; -*-
#I need menu-1!
#
#NOTE: the first line of this script _must_ be
# equal to "#!/usr/sbin/install-menu", otherwise update-menus
# will feed this script old-compat-mode data.
#
#More info: /usr/doc/menu/html.
#
compat="menu-1"

!include menu.h

compat="menu-2"

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

#This doens't seem to be possible with twm:  wm="f.restart \"${title}\"\\n"
supported;
  x11= f($command);
  text=f(term());
#  x11 = "  \"" $title "\"    f.exec  \""$command " &\"\n";
#  text= "  \"" $title "\"    f.exec  \"xterm -title \\\""
#               $title "\\\" -e " esc($command,"\"") " &\"\n";
endsupported;
startmenu=   "menu \"" $section "\"\n{\n";
endmenu=     "}\n";
submenutitle="  \"" title() "\" f.menu \"" $section "\"\n";
genmenu=      "menudefs.hook";
rcfile=       "system.twmrc";
examplercfile="system.twmrc-menu";
rootprefix=   "/etc/X11/twm/";
userprefix=   "/.twm/";
rootsection= "/Mandrake";