File: manpage

package info (click to toggle)
simrisc 16.06.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,889; fortran: 669; makefile: 112; ansic: 112; sh: 107
file content (18 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}