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);
}




