diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-08 10:13:31 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-08 10:13:31 -0700 |
commit | 2e890580fc3f0c02b5611c14111ff3079df70d55 (patch) | |
tree | 861849649387ae2780462d6f6327e8f9686b0070 /doc | |
parent | afda5e684b4c3b02d55436a6ea6bff82cb56d056 (diff) | |
download | infinitytier-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')
-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 |