summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-08 14:06:19 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-08 14:06:19 -0700
commit4e6f95e152c1b607f9a5d9f89a1b0be1e7795a5e (patch)
treef75a015d3dbb4441da1ca2b72985cf3d88de160d /doc
parentde9fa6a334ae3b774acdaeaa116a06ec8026f372 (diff)
downloadinfinitytier-4e6f95e152c1b607f9a5d9f89a1b0be1e7795a5e.tar.gz
infinitytier-4e6f95e152c1b607f9a5d9f89a1b0be1e7795a5e.zip
Build man pages with ruby-ronn on Debian.
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/build.sh32
1 files changed, 19 insertions, 13 deletions
diff --git a/doc/build.sh b/doc/build.sh
index f77808c6..4ed69004 100755
--- a/doc/build.sh
+++ b/doc/build.sh
@@ -6,21 +6,27 @@ if [ ! -f zerotier-cli.1.md ]; then
echo 'This script must be run from the doc/ subfolder of the ZeroTier tree.'
fi
-if [ ! -f node_modules/marked-man/bin/marked-man ]; then
- echo 'Installing MarkDown to ROFF converter...'
- npm install marked-man
- echo
-fi
+rm -f *.1 *.2 *.8
-rm -f *.1 *.8
+if [ -e /usr/bin/ronn ]; then
+ /usr/bin/ronn -r zerotier-cli.1.md
+ /usr/bin/ronn -r zerotier-idtool.1.md
+ /usr/bin/ronn -r zerotier-one.8.md
+else
+ if [ ! -f node_modules/marked-man/bin/marked-man ]; then
+ echo 'Installing MarkDown to ROFF converter...'
+ npm install marked-man
+ echo
+ fi
-NODE=/usr/bin/node
-if [ -e /usr/bin/nodejs ]; then
- NODE=/usr/bin/nodejs
-fi
+ NODE=/usr/bin/node
+ if [ -e /usr/bin/nodejs ]; then
+ NODE=/usr/bin/nodejs
+ fi
-$NODE node_modules/marked-man/bin/marked-man zerotier-cli.1.md >zerotier-cli.1
-$NODE node_modules/marked-man/bin/marked-man zerotier-idtool.1.md >zerotier-idtool.1
-$NODE node_modules/marked-man/bin/marked-man zerotier-one.8.md >zerotier-one.8
+ $NODE node_modules/marked-man/bin/marked-man zerotier-cli.1.md >zerotier-cli.1
+ $NODE node_modules/marked-man/bin/marked-man zerotier-idtool.1.md >zerotier-idtool.1
+ $NODE node_modules/marked-man/bin/marked-man zerotier-one.8.md >zerotier-one.8
+fi
exit 0