#!/usr/sbin/install-menu
#
# uwm (0.2.8.20010609)
#
#  **  by Stephan Helma <sph@debian.org> **
#
compat="menu-1"

supported
  x11=  "  ITEM \"" $title "\":\"" $command "\";\n"
  #text= "  ITEM \"" $title "\":\" xterm -T \\\"" $title "\\\" -e " $command "\";\n"
  # Comment out the above line and uncomment the following if you want
  # to use uwm's advanced feature of preprocessing the config files
  # (needs a proprocessor).
  text= "  ITEM \"" $title "\":TERMCOMMAND(-T QUOTE(" $title ") -e " $command ");\n"
  wm=   "OtherWMs = " stripdir($command) "\n"
endsupported

startmenu=""
endmenu=ifneq($title,"Debian menu","}\n")
submenutitle="SUBMENU \"" $title "\" {\n"
# WindowManagers has to go into other file!
# Put menu definition for WindowManagers into dummy file
# and delete it afterwards
genmenu=ifeqelse($needs,"wm",ifeqelse($title,"uwm","dummy","uwmrc-wm.hook"),ifeqelse($title,"WindowManagers","dummy","appmenu.hook"))
postrun="rm -f " prefix() "/dummy"
preoutput="# /etc/X11/ude/appmenu.hook resp. /etc/X11/ude/uwmrc-wm.hook\n# Automatically generated file. Do not edit (see /usr/share/doc/menu/html)\n\n# These are some macros which can be used by uwm's advanced feature of\n# preprocessing the config files with a c preprocessor. You've to\n# (un)comment two lines in '/etc/menu-methods/uwm' to use it with the\n# Debian menu system. Feel free to change the TERMCOMMAND to your\n# favourite xterm. But do it in '/etc/menu-methods/uwm' to preserve\n# your settings since this file gets overwritten with every update-menu!\n\n#define QUOTE(X) #X\n#define TERMCOMMAND(ARGS) QUOTE(/usr/bin/X11/xterm -ls ARGS)\n\n"
rootprefix="/etc/X11/ude/"
userprefix=".ude/config"
mainmenutitle="Debian menu"
treewalk="(M)"
