Debian Codegraph @

icmake/manualmacrolist

raw
1 // manualMacroList creates the macros for the man- and manual-pages in
2 // the file tmp/wip/macrolist.yo
3 void manualMacroList()
4 {
5 list raw;
6 int idx;
7
8 chdir("macros/rawmacros");
9
10 raw = makelist("*.raw");
11
12 echo(OFF);
13
14 run("rm -f ../../" + g_wip + "/macrolist.yo");
15
16 for (idx = 0; idx < listlen(raw); idx++)
17 {
18 // pick the documentation from the raw macros (delimited by the
19 // <STARTDOC> and <> tags) and append it to macrolist.yo
20 system("./startdoc.pl " + raw[idx] + " >> "
21 "../../" + g_wip + "/macrolist.yo");
22 printf(".");
23 }
24 echo(ON);
25
26 chdir(g_cwd);
27 printf("\n");
28 }
29