Skip to content

Commit

Permalink
chore: add manpage generation to build
Browse files Browse the repository at this point in the history
  • Loading branch information
45413 committed Mar 3, 2024
1 parent e7f87ef commit f98b739
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- make manpage
# you may remove this if you don't need go generate
# - go generate ./...

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

0 comments on commit f98b739

Please sign in to comment.