man stuff
This commit is contained in:
14
doc/build.sh
14
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
|
||||
|
||||
Reference in New Issue
Block a user