aboutsummaryrefslogtreecommitdiff
path: root/doc/man/produce_html.sh
blob: ce6dea304b387ba7cbb33416bf1b33b15c6a403d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

existence()
{
    command -v "$1" >/dev/null 2>&1
}

if existence mandoc;
then
    for f in `find . -name \*\.[1-9]`;
    do
        mandoc -T html $f > $f.html;
    done
fi