summaryrefslogtreecommitdiff
path: root/doc/build.sh
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-08 10:13:31 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-08 10:13:31 -0700
commit2e890580fc3f0c02b5611c14111ff3079df70d55 (patch)
tree861849649387ae2780462d6f6327e8f9686b0070 /doc/build.sh
parentafda5e684b4c3b02d55436a6ea6bff82cb56d056 (diff)
downloadinfinitytier-2e890580fc3f0c02b5611c14111ff3079df70d55.tar.gz
infinitytier-2e890580fc3f0c02b5611c14111ff3079df70d55.zip
Stop shipping pre-build man pages since it violates Debian arcane rule #134931e+26 and add manpages build target.
Diffstat (limited to 'doc/build.sh')
-rwxr-xr-xdoc/build.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/build.sh b/doc/build.sh
index 06d95212..f77808c6 100755
--- a/doc/build.sh
+++ b/doc/build.sh
@@ -14,8 +14,13 @@ fi
rm -f *.1 *.8
-node_modules/marked-man/bin/marked-man zerotier-cli.1.md >zerotier-cli.1
-node_modules/marked-man/bin/marked-man zerotier-idtool.1.md >zerotier-idtool.1
-node_modules/marked-man/bin/marked-man zerotier-one.8.md >zerotier-one.8
+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
exit 0