pike.git/
lib/
master.pike.in
Branch:
Tag:
Non-build tags
All tags
No tags
2003-10-08
2003-10-08 19:59:02 by Martin Stjernholm <mast@lysator.liu.se>
6e2cfd5bb65578e6f6c970c10e8a5af6f9c14b96 (
16
lines) (+
10
/-
6
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed bogus and ugly way of listing available -x tools.
Rev: lib/master.pike.in:1.306
6:
// Pike is distributed under GPL, LGPL and MPL. See the file COPYING // for more information. //
-
// $Id: master.pike.in,v 1.
305
2003/
09
/
20
20
:
49
:
48
nilsson
Exp $
+
// $Id: master.pike.in,v 1.
306
2003/
10
/
08
19
:
59
:
02
mast
Exp $
#pike __REAL_VERSION__
2396:
mapping t = ([]); int i; object ts = main_resolv( "Tools", "Standalone" );
-
foreach(indices(ts)
-indices(ts->module)
, string s) {
-
object
o
= ts[s]();
+
foreach
(indices(ts), string s) {
+
mixed
val
= ts[s]
;
+
if
(
programp (val
)
) {
+
object o = val()
;
if(!o->main) continue; t[s] = o->description || ""; i = max(i, sizeof(s)); }
-
+
}
foreach(sort(indices(t)), string s) werror(" %-"+i+"s %s\n", s, t[s]); exit(1);