release.sh: fix completion generation
parent
15e9c08a8a
commit
5570580b78
|
@ -28,8 +28,7 @@ cargo build
|
||||||
|
|
||||||
for binary in "innernet" "innernet-server"; do
|
for binary in "innernet" "innernet-server"; do
|
||||||
for shell in {fish,zsh,bash,powershell,elvish}; do
|
for shell in {fish,zsh,bash,powershell,elvish}; do
|
||||||
"target/debug/$binary" completions $shell > doc/$binary.completions.$shell
|
"target/debug/$binary" completions $shell > doc/$binary.completions.$shell || die "CLI completion failed for $shell"
|
||||||
git diff --quiet -- doc/$binary.completions.$shell || die "CLI and Completions out of sync for $shell"
|
|
||||||
done
|
done
|
||||||
help2man --no-discard-stderr -s8 "target/debug/$binary" -N > "doc/$binary.8"
|
help2man --no-discard-stderr -s8 "target/debug/$binary" -N > "doc/$binary.8"
|
||||||
gzip -fk "doc/$binary.8"
|
gzip -fk "doc/$binary.8"
|
||||||
|
|
Loading…
Reference in New Issue