2016-06-02 19:33:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
|
|
|
|
|
|
|
|
if [ ! -f zerotier-cli.1.md ]; then
|
|
|
|
echo 'This script must be run from the doc/ subfolder of the ZeroTier tree.'
|
|
|
|
fi
|
|
|
|
|
2016-06-02 20:04:46 +00:00
|
|
|
if [ ! -f node_modules/marked-man/bin/marked-man ]; then
|
2016-06-02 19:33:28 +00:00
|
|
|
echo 'Installing MarkDown to ROFF converter...'
|
2016-06-02 20:04:46 +00:00
|
|
|
npm install marked-man
|
2016-06-02 19:33:28 +00:00
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
2016-06-02 20:56:24 +00:00
|
|
|
rm -f *.1 *.8
|
2016-06-02 19:33:28 +00:00
|
|
|
|
2016-06-08 17:13:31 +00:00
|
|
|
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
|
2016-06-02 19:33:28 +00:00
|
|
|
|
|
|
|
exit 0
|