chore: rebrand backone names, add lint gate + agent docs
- CI: build/validate use backone selftest + binary names, add lint.yml - make-*.mk: emit/install backone binaries, drop zerotier-one paths - doc/debian/ext.installfiles: backone manpages, service, init, te - rule-compiler: npm test runs test.js; attic world planet files - AGENTS.md repository guidelines, tools/lint.sh changed-lines gate - gitignore: /backone-selftest, *.gcno, *.gcda
This commit is contained in:
1 parent
104d781614
commit
c550fe0684
37 files changed
+881
-565
No files matched your search
+20
-29
@@ -1,42 +1,33 @@
|
||||
#!/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.'
|
||||
if [ ! -f backone.8.md ]; then
|
||||
echo 'This script must be run from the doc/ subfolder of the BackOne tree.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -f *.1 *.2 *.8
|
||||
|
||||
if [ -e /usr/bin/ronn -o -e /usr/local/bin/ronn ]; then
|
||||
# Use 'ronn' which is available as a package on many distros including Debian
|
||||
ronn -r zerotier-cli.1.md
|
||||
ronn -r zerotier-idtool.1.md
|
||||
ronn -r zerotier-one.8.md
|
||||
# Use 'ronn' which is available as a package on many distros including Debian
|
||||
ronn -r backone-cli.1.md
|
||||
ronn -r backone-idtool.1.md
|
||||
ronn -r backone.8.md
|
||||
else
|
||||
# Use 'marked-man' from npm
|
||||
NODE=/usr/bin/node
|
||||
if [ ! -e $NODE ]; then
|
||||
if [ -e /usr/bin/nodejs ]; then
|
||||
NODE=/usr/bin/nodejs
|
||||
elif [ -e /usr/local/bin/node ]; then
|
||||
NODE=/usr/local/bin/node
|
||||
elif [ -e /usr/local/bin/nodejs ]; then
|
||||
NODE=/usr/local/bin/nodejs
|
||||
else
|
||||
echo 'Unable to find ronn or node/npm -- cannot build man pages!'
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
# Use 'marked-man' from npm
|
||||
NODE=$(command -v node || command -v nodejs)
|
||||
if [ -z "$NODE" ]; then
|
||||
echo 'Unable to find ronn or node/npm -- cannot build man pages!'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f node_modules/marked-man/bin/marked-man ]; then
|
||||
echo 'Installing npm package "marked-man" -- MarkDown to ROFF converter...'
|
||||
npm install marked-man
|
||||
fi
|
||||
if ! npx --no-install marked-man --version >/dev/null 2>&1; then
|
||||
echo 'Installing npm package "marked-man" -- MarkDown to ROFF converter...'
|
||||
npm install marked-man
|
||||
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
|
||||
npx --no-install marked-man backone-cli.1.md >backone-cli.1
|
||||
npx --no-install marked-man backone-idtool.1.md >backone-idtool.1
|
||||
npx --no-install marked-man backone.8.md >backone.8
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user