#!/usr/bin/install-menu
#
# Generates a stumpwm menu file
# BE CERTAIN to change the pathnames as appropriate BEFORE using
outputencoding="LOCALE"

!include menu.h

genmenu="stump.menu"
rcfile="stump.menu"
rootprefix="/tmp/"
userprefix="src/stumpwm/contrib/"

treewalk="(M)"

startmenu= nstring(level(), "  ") "(\"" $title "\" . (\n"
endmenu= nstring(level(), "  ") "))\n"

supported
    x11=  nstring(level(), "  ") "(\"" title() "\" . \"" esc($command, "\"") "\")\n"
    text= nstring(level(), "  ") "(\"" title() "\" . \"" esc(term(), "\"") "\")\n"
endsupported
