Stop shipping pre-build man pages since it violates Debian arcane rule #134931e+26 and add manpages build target.

This commit is contained in:
Adam Ierymenko 2016-06-08 10:13:31 -07:00
parent afda5e684b
commit 2e890580fc
9 changed files with 45 additions and 6 deletions

View file

@ -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.

View file

@ -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