Sophie

Sophie

distrib > Mandriva > 7.2 > i586 > media > main-src > by-pkgid > 94625026db905539f0004a74e9b90e87 > files > 12

WindowMaker-0.62.1-18mdk.src.rpm

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

!include menu.h

genmenu="menu"
rootprefix="/usr/share/WindowMaker"
userprefix="GNUstep/Library/WindowMaker/"
treewalk=(M)
rootsection="n"
sort=ifeqelse($title, "Exit", "1", "0")":"$title

function exec($action,$com)= \
        "  \"" translate(lang(),$title) "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n" 

supported
x11=	exec("EXEC",$command) 
wm=	exec("RESTART",$command) 
text=	exec("EXEC",term())
wmaker= exec("",$command ifnempty($arg," " $arg))
endsupported

preoutput= "/* Automatically generated file. Do not edit (see /usr/doc/menu/README) */\n\n#include \"wmmacros\"\n"
postoutput= "\n#include \"user.menu\"\n"

mainmenutitle=""
submenutitle= ""

startmenu= "\n" \
           ifelse( \
                title(), \
                "\"" translate(lang(),title()) "\" MENU", \
                "Mandrake MENU\n\n" \
           ) \
           "\n"
endmenu=   ifelse( \
                title(), \
                "\"" translate(lang(),title()) "\" END", \
                "\nMandrake END" \
           ) \
           "\n"