man stuff

This commit is contained in:
Adam Ierymenko 2016-06-02 13:04:46 -07:00
commit 41b3b54bf8
4 changed files with 61 additions and 90 deletions

View file

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