From 718aff3c2aa56a6c31645f701197c3ec5953c5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Benkovsk=C3=BD?= Date: Thu, 23 May 2024 14:23:50 +0200 Subject: [PATCH] simplify manpages --- .goreleaser.yaml | 2 +- scripts/manpages.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fa27930..0f4270c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -37,7 +37,7 @@ brews: bin.install "dnspyre" bash_completion.install "completions/dnspyre.bash" => "_dnspyre" zsh_completion.install "completions/dnspyre.zsh" => "_dnspyre" - man1.install Dir["manpages/*.1"] + man1.install "manpages/dnspyre.1.gz" dockers: - use: docker id: dnspyre diff --git a/scripts/manpages.sh b/scripts/manpages.sh index dd51089..c0c5191 100644 --- a/scripts/manpages.sh +++ b/scripts/manpages.sh @@ -3,6 +3,5 @@ set -e rm -rf manpages mkdir manpages -for sh in bash zsh; do - go run main.go --help-man >"manpages/dnspyre.1" -done +go run main.go --help-man >"manpages/dnspyre.1" +gzip --best "manpages/dnspyre.1"