void _manpage(string dest, string manpage, string source)
{
    run("yodl2man  -o " + dest + manpage + " "  + source);
    run("yodl2html  "
            "-o ../../tmp/manhtml/" + manpage + ".html " + source);
}

void manpage()
{
    md("tmp/man tmp/manhtml");

    chdir("documentation/man");

    _manpage("../../tmp/man/",  PROGRAM ".1",       PROGRAM ".yo");
    _manpage("../../tmp/man/",  PROGRAM "params.7", PROGRAM "params.yo");

    exit(0);
}
