#!/usr/sbin/install-menu
#
# Generates WindowMaker menus for all registered applications.
compat="menu-1"

!include menu.h

genmenu="menu.hook"
rootprefix="/etc/X11/WindowMaker/"
userprefix="GNUstep/Library/WindowMaker/"
treewalk=(M)
rootsection="/Debian"

supported
x11=	"  \"" $title "\"  EXEC " $command "\n" 
wm=	"  \"" $title "\"  RESTART " $command "\n" 
text=	"  \"" $title "\"  EXEC " term() "\n"
wmaker= "  \"" $title "\"  " $command "\n"
endsupported

preoutput= \
  "# Automatically generated file. Do not edit (see /usr/doc/menu/README)\n" \
  "\n" \
  "#include \"wmmacros\"\n" \
  "\n" \
  "Debian MENU\n" \
  "\n" \
  "#include <menu.prehook>"
postoutput= \
   "\n" \
   "#include <menu.posthook>\n" \
   "\n" \
   "Debian END\n"

startmenu= "\n" basename($section"/dummy") " MENU \n"
submenutitle= ""
endmenu= basename($section"/dummy") " END\n"
#endmenu= ifnempty($title, $title " END\n")
