innernet/generate_manpage.sh

16 lines
305 B
Bash
Raw Normal View History

2021-03-29 17:22:14 +00:00
#!/usr/bin/env bash
set -ex
if ! command -v help2man &> /dev/null
then
echo "help2man binary could not be found"
exit
fi
cargo build
for binary in "innernet" "innernet-server"; do
help2man --no-discard-stderr -s8 "target/debug/$binary" -N > "doc/$binary.8"
gzip -f "doc/$binary.8"
done