1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/usr/sbin/install-menu
# Generates flwm menus for all registered applications.
compat="menu-1"
!include menu.h
# Make menus into directories and entries into files; deal with entries that
# contain slashes like "Communicator (static/461) Browser"
genmenu=parent($section) "/" replacewith($title, "/", "_") \
ifelse($command, "", "/")
rootprefix="/etc/X11/flwm/wmx/"
userprefix=".wmx/"
treewalk=(M)
rootsection="/Debian"
preoutput= "#! /bin/sh\n# This file was automatically generated (see /usr/doc/menu).\n# DO NOT EDIT!\n"
# Clean-up files we may have generated in an earlier run first.
prerun="find " prefix() " -type f -exec grep -q 'DO NOT EDIT' {} \\; -exec rm {} \\; ; find " prefix() " -type d -print0 | xargs -0 rmdir --ignore-fail-on-non-empty"
# And make the generated scripts executable afterwards.
postrun="find " prefix() " -type f -print0 | xargs -0 chmod a+x"
supported
x11= $command "\n"
text= term() "\n"
# TODO: we should support "wm" as well
endsupported
mainmenutitle=""
submenutitle= ""
startmenu=""
endmenu=""
|