Gentoo Archives: gentoo-dev

From: Svyatogor <svyatogor@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Gentoo Menu - Bash vs. Python Rule files
Date: Wed, 13 Aug 2003 17:51:02
Message-Id: 200308132019.37871.svyatogor@gentoo.org
In Reply to: [gentoo-dev] Gentoo Menu - Bash vs. Python Rule files by Heinrich Wendel
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hi!
5 I just want to clarify what is the purpose of the rules file. It contains a
6 set of functions for generating the various menu elements for a spicific
7 window manager. E.g. it would contain a start_submenu function, which is
8 called to begin a new sub menu.
9
10 I would like to explain my position of using bash scripts. Even though the
11 rules files will be installed by the WM ebuild, it is likely that the users
12 will want to change some things, which are not directly customisable through
13 the menu files (though we'll do our best to cut down on such things). It is
14 reasonable to expect the vast majority of users to be familiar with bash (at
15 least basic stuff), while not really many users now Python. With this in mind
16 I have proposed to use shell.
17
18 P.S. Heh, I also was gonna write it. Youwere quicker ;)
19
20 On Wednesday 13 August 2003 19:44, Heinrich Wendel wrote:
21 > Hi,
22 >
23 > Svyatogor and me are working on a menu system (like debian ones) for
24 > gentoo. Now we have come to the part where we have to decide whether to use
25 > python or bash scripts for the rule files of the window managers.
26 >
27 > The Python scripts are 2 times as fast as a bash script and in my opinion
28 > would make live easier, are easier to handle. But svyatogor votes for bash
29 > scripts, as more people know how to write bash scripts than python scripts,
30 > here an example of both:
31 >
32 > Python:
33 > http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/gentoo-menu/examples/f
34 >luxbox.py?rev=1.3&cvsroot=gentoo-src&content-type=text/plain
35 >
36 > Bash:
37 > http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/gentoo-menu/examples/f
38 >luxbox.wm?rev=1.3&cvsroot=gentoo-src&content-type=text/plain
39 >
40 > What would you prefer?
41 >
42 > mfg, heinrich
43 >
44 > --
45 > gentoo-dev@g.o mailing list
46
47 - --
48 Let the Force be with us!
49 Sergey Kuleshov
50 -----BEGIN PGP SIGNATURE-----
51 Version: GnuPG v1.2.2 (GNU/Linux)
52
53 iD8DBQE/OnMnbYNN+aDJgscRAqW6AKDCZdMgxCGGqrEJgEfJA3z75yL4KgCfRIOi
54 4+NyYXve3gBOubo8RCWqrHU=
55 =SeTj
56 -----END PGP SIGNATURE-----
57
58
59 --
60 gentoo-dev@g.o mailing list