1 sub repl(s,t) { local r = ''; while(t--) r = r ~ s; r; }
7 if((f = open("doc/mp_configuration.txt", "r")) != NULL)
14 l = sregex("/\r?\n$/", l);
16 if(l eq "----") break;
18 if(regex('/^mp\.config\..+$/', l))
26 desc[k] = desc[k] ~ "\n" ~ l;
34 if((f = open("doc/mp_configuration.txt", "w")) != NULL)
36 write(f, join("\n", header) ~ "\n");
38 foreach(local k, map(sub(l) { 'mp.config.' ~ l; }, sort(keys(mp.config))))
41 write(f, repl('-', size(k)));
44 write(f, desc[k] || "To be written.\n");
48 write(f, "----\nAngel Ortega <angel@triptico.com>\n");