diff options
Diffstat (limited to 'doc/build.sh')
-rwxr-xr-x | doc/build.sh | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/doc/build.sh b/doc/build.sh index e3518da9..a1750d88 100755 --- a/doc/build.sh +++ b/doc/build.sh @@ -6,20 +6,14 @@ if [ ! -f zerotier-cli.1.md ]; then echo 'This script must be run from the doc/ subfolder of the ZeroTier tree.' fi -if [ ! -f node_modules/ronn/bin/ronn.js ]; then +if [ ! -f node_modules/marked-man/bin/marked-man ]; then echo 'Installing MarkDown to ROFF converter...' - npm install ronn + npm install marked-man echo fi -rm -f zerotier-cli.1 *.roff +rm -f *.1 *.2 *.8 -node node_modules/ronn/bin/ronn.js --build --roff zerotier-cli.1.md -if [ -f zerotier-cli.1.roff ]; then - mv zerotier-cli.1.roff zerotier-cli.1 -else - echo 'Conversion of zerotier-cli.1.md failed!' - exit 1 -fi +node_modules/marked-man/bin/marked-man zerotier-cli.1.md >zerotier-cli.1 exit 0 |