Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37647661
en ru br
Репозитории ALT
S:0.25.4-alt1
5.1: 0.16.8.9-alt1
4.1: 0.16.8.9-alt1
3.0: 0.16.7-alt1_2
www.altlinux.org/Changes

Группа :: Графические оболочки/Enlightenment
Пакет: enlightenment

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#!/usr/sbin/install-menu

compat="menu-1";
!include menu.h

compat="menu-2";

onlyrunasroot=true;

# choose a terminal program here:
function term_prog()="Eterm";
#function term_prog()="rxvt";
#function term_prog()="xterm";

treewalk=c(m);
rootprefix="/etc/X11/enlightenment/menus/";
mainmenutitle="ALTLinux Menu";

function menu_sh() = prefix() "altlinux_menu_sh";
prerun="set -e; rm -f " prefix() "altlinux*menu/" menu_sh();
postrun="set -e; cat " menu_sh() "| sh; rm -f " menu_sh();

function quote($text)= "\"" $text "\"";
function tick($text)= "\'" $text "\'";

function space()= " ";

function newline()="\n";

function ltitle()=translate(lang(),title());

function findicon($filename)=ifelse($filename,
ifelsefile("/usr/share/icons/mini/" $filename,
"/usr/share/icons/mini/" $filename,
$filename),
"NULL");

function entry($com)= quote(esc(ltitle(),"\"")) space()
quote(findicon(icon())) space()
quote("exec") space()
$com;

function term($com)= term_prog() " -T " tick(ltitle()) " -e " $com;

supported;
wm= entry(quote("eesh -e " tick("restart_wm " $command)) newline());
x11= entry(quote($command) newline());
text= entry(quote(term($command)) newline());
endsupported;

function etitle()= tolower(replacewith(replacewith($section,"/","_")," ","_") ".menu");

startmenu= "cat > " prefix() etitle() " << END" newline() quote(ltitle()) newline();

endmenu= "END" newline() newline();

submenutitle="\"" ltitle() "\" NULL menu \"" prefix() etitle() "\"\n";

genmenu="altlinux_menu_sh";
rootsection="ALTLinux";
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin