man/produce_html: use shlib
[oweals/gnunet.git] / doc / man / produce_html.sh.in
diff --git a/doc/man/produce_html.sh.in b/doc/man/produce_html.sh.in
new file mode 100755 (executable)
index 0000000..3f45207
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. @pkgdatadir@/existence.sh
+
+if existence mandoc;
+then
+    for f in `find . -name \*\.[1-9]`;
+    do
+        mandoc -T html $f > $f.html;
+    done
+fi