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

!include menu.h

outputencoding="LOCALE"

genmenu="menu.hook"
rootprefix="/etc/X11/qvwm/"
userprefix=".qvwm"
treewalk="(M)"
rootsection="\\&Programs"

function q($com)=esc($com,"\"")

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

preoutput= \
  "; Automatically generated file. Do not edit. (see /usr/doc/menu/README)\n" \
  "\n" \
  "\n" \

startmenu= "\"" stripdir($section) "\"   \"\"\n+\n"
endmenu=   "-\n"
