#!/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"
treewalk="(M)"

function ttitle()=encode_translate(lang(),title(),"utf-8")
function f($com)="<app name=\"" ttitle() "\"    cmd=\"" esc($com,"\"")"\"/>\n"
function t($com)="<app name=\"" ttitle() "\"  term=\"yes\"  cmd=\"" esc($com,"\"")"\"/>\n"

supported;
  x11=f($command)
  xfce4=f($command)
  text=t($command)
endsupported;
preoutput=""
startmenu=   "<menu name=\"" ttitle() "\">\n"
endmenu=     "</menu>\n"
genmenu=      "menu2.xml"
rootprefix=   "/etc/X11/xfce4/"
rootsection= "Mandrake"
onlyrunasroot=true
