1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
void manual()
{
list files;
string file;
int idx;
string compiler;
compiler = setOpt(CXX, "CXX");
md("tmp/manual/LaTeX tmp/manual/html tmp/manual/pdf tmp/manual/ps ");
// "tmp/manual/text");
if (!exists("tmp/usage.txt"))
{
run(compiler +
" --std=c++0x -o tmp/usage documentation/manual/usage.cc");
run("tmp/usage > tmp/usage.txt");
}
chdir("documentation/manual");
// create the html version of the manual
run("yodl2html -l3 " PROJECT ".yo");
run("mv *.html ../../tmp/manual/html");
// create the LaTex and derived versions of the manual
#define LATEXDEST "../../tmp/manual/LaTeX/stealth.latex"
run("yodl2latex -o " LATEXDEST " stealth.yo");
run("cp stealth.sty ../../tmp/manual/LaTeX");
//putenv("FORCE_SOURCE_DATE=1");
chdir("../../tmp/manual/LaTeX");
runP(P_NOCHECK, "latex stealth.latex");
runP(P_NOCHECK, "latex stealth.latex");
run("latex stealth.latex");
run("rm -f stealth.aux stealth.log stealth.out stealth.toc");
run("dvips -o ../ps/stealth.ps stealth.dvi");
chdir("../ps");
run("ps2pdf stealth.ps ../pdf/stealth.pdf");
// create the txt version of the manual
//run("yodl2txt -o " TXTMANUAL " stealth.yo");
exit(0);
}
|