Skip to content

Commit f98b739

Browse files
committed
chore: add manpage generation to build
1 parent e7f87ef commit f98b739

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ before:
1212
hooks:
1313
# You may remove this if you don't use go modules.
1414
- go mod tidy
15+
- make manpage
1516
# you may remove this if you don't need go generate
1617
# - go generate ./...
1718

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
clean:
2+
@echo "Removing build files"
3+
@if [ -d "dist" ]; then rm -rf dist; fi
4+
@rm -f share/man/*.gz share/man/*.html
15
manpage:
26
@echo "Generating manpage from '/share/man/git-cc.1.md'"
37
@$$(go env GOPATH)/bin/md2roff -date "$(date +%Y-%m-%d)" -manual "git-cc" share/man/git-cc.1.md
4-
@gzip -9 share/man/git-cc.1
8+
@gzip -f -9 share/man/git-cc.1

0 commit comments

Comments
 (0)