From 2e890580fc3f0c02b5611c14111ff3079df70d55 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 8 Jun 2016 10:13:31 -0700 Subject: Stop shipping pre-build man pages since it violates Debian arcane rule #134931e+26 and add manpages build target. --- doc/README.md | 2 +- doc/build.sh | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/README.md b/doc/README.md index 2b87217d..c82b5492 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,4 +1,4 @@ Manual Pages and Other Documentation ===== -To build the Linux/Unix manual pages type "./build.sh." You'll need NodeJS since if it's not here already the build script will pull [marked-man](https://github.com/kapouer/marked-man), which is a MarkDown to ROFF/man converter. We pre-build and ship the compiled man pages, so running build.sh is not essential unless the source MarkDown files have changed. +Use "./build.sh" to build the manual pages. You'll need NodeJS and npm installed. 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 -- cgit v1.2.3