diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.md | 2 | ||||
-rwxr-xr-x | doc/build.sh | 11 |
2 files changed, 9 insertions, 4 deletions
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 |