mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-16 22:28:17 +00:00
Build man pages with ruby-ronn on Debian.
This commit is contained in:
2
debian/control
vendored
2
debian/control
vendored
@ -3,7 +3,7 @@ Maintainer: Adam Ierymenko <adam.ierymenko@zerotier.com>
|
|||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Standards-Version: 3.9.6
|
Standards-Version: 3.9.6
|
||||||
Build-Depends: debhelper (>= 9), nodejs (>= 0.10.0), libhttp-parser-dev (>= 2.1), liblz4-dev, npm (>= 1.4.0), libnatpmp-dev, dh-systemd
|
Build-Depends: debhelper (>= 9), nodejs (>= 0.10.0), libhttp-parser-dev (>= 2.1), liblz4-dev, npm (>= 1.4.0), libnatpmp-dev, dh-systemd, ruby-ronn
|
||||||
Vcs-Git: git://github.com/zerotier/ZeroTierOne
|
Vcs-Git: git://github.com/zerotier/ZeroTierOne
|
||||||
Vcs-Browser: https://github.com/zerotier/ZeroTierOne
|
Vcs-Browser: https://github.com/zerotier/ZeroTierOne
|
||||||
Homepage: https://www.zerotier.com/
|
Homepage: https://www.zerotier.com/
|
||||||
|
36
doc/build.sh
36
doc/build.sh
@ -6,21 +6,27 @@ if [ ! -f zerotier-cli.1.md ]; then
|
|||||||
echo 'This script must be run from the doc/ subfolder of the ZeroTier tree.'
|
echo 'This script must be run from the doc/ subfolder of the ZeroTier tree.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f node_modules/marked-man/bin/marked-man ]; then
|
rm -f *.1 *.2 *.8
|
||||||
echo 'Installing MarkDown to ROFF converter...'
|
|
||||||
npm install marked-man
|
if [ -e /usr/bin/ronn ]; then
|
||||||
echo
|
/usr/bin/ronn -r zerotier-cli.1.md
|
||||||
|
/usr/bin/ronn -r zerotier-idtool.1.md
|
||||||
|
/usr/bin/ronn -r zerotier-one.8.md
|
||||||
|
else
|
||||||
|
if [ ! -f node_modules/marked-man/bin/marked-man ]; then
|
||||||
|
echo 'Installing MarkDown to ROFF converter...'
|
||||||
|
npm install marked-man
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f *.1 *.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
|
exit 0
|
||||||
|
Reference in New Issue
Block a user