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 36 37 38 39 40 41 42 43 44 45 46
|
#!/usr/sbin/install-menu
#
# Written by Joey Hess (with subtle mods by joostje).
#
# This generates a pdmenurc file that can be preprocessed by cpp to enable
# differnet types of displays. For example, you can -Dx11 -Xtext to display
# only the text and x11 entries, and not the vc ones.
#
# More info: /usr/doc/menu/html, /usr/doc/pdmenu/README.Debian
# The verson of the menu package that can process this.
compat="menu-1"
# Filename of the pdmenurc file we will generate.
genmenu="pdmenurc_auto"
# Where the system wide generated file is placed.
rootprefix="/var/lib/pdmenu/"
userprefix="/rommel/"
# Title of the top level menu that is made.
mainmenutitle="Debian Menus"
# Don't ever use "q" as a hotkey in menus, becuase it is used to popdown
# submenus.
hotkeyexclude="q"
# Some text to go at the top of the autogenerated file.
preoutput="# Automatically generated pdmenurc file.\n# Do not edit (see /usr/doc/pdmenu/README.debian)\n\n"
# In what order we output the menus.
treewalk="c(m)"
# How to start a new menu in the rc file.
startmenu="menu:" esc($section,":") ":" esc($title,":") "\n"
# How to add a submenu to a menu.
# Notice that thanks to cpp and some #deifnes, the submenu is only added if
# the submenu actually contains menu entries.
submenutitle=\
text= "#ifdef text\n" \
" exec:" esc(escfirst($title,$hotkey,"_"),":") "::" $command "\n" \
"#endif\n"
endsupported
# Pdmenu doesn't need anything special at the end of a menu.
endmenu= "\n"
|