diff options
Diffstat (limited to 'doc/man/produce_html.sh')
-rwxr-xr-x | doc/man/produce_html.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/man/produce_html.sh b/doc/man/produce_html.sh new file mode 100755 index 000000000..ce6dea304 --- /dev/null +++ b/doc/man/produce_html.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | existence() | ||
4 | { | ||
5 | command -v "$1" >/dev/null 2>&1 | ||
6 | } | ||
7 | |||
8 | if existence mandoc; | ||
9 | then | ||
10 | for f in `find . -name \*\.[1-9]`; | ||
11 | do | ||
12 | mandoc -T html $f > $f.html; | ||
13 | done | ||
14 | fi | ||