Skip to content

Commit

Permalink
generate manpages into ./share/man/man1
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfurlan committed May 19, 2020
1 parent dffb558 commit db2fac9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/bin
/share/man/man1
/gh-cli
.envrc
/dist
Expand All @@ -16,5 +17,3 @@
.DS_Store

vendor/

manpage
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ archives:
darwin: macOS
format: tar.gz
files:
- manpage/gh*.1
- ./share/man/man1/gh*.1
- id: windows
builds: [windows]
<<: *archive_defaults
Expand All @@ -61,7 +61,7 @@ brews:
install: |
system "make" if build.head?
bin.install "bin/gh"
man1.install Dir["manpages/*.1"]
man1.install Dir["./share/man/man1/gh*.1"]
(bash_completion/"gh.sh").write `#{bin}/gh completion -s bash`
(zsh_completion/"_gh").write `#{bin}/gh completion -s zsh`
(fish_completion/"gh.fish").write `#{bin}/gh completion -s fish`
Expand All @@ -80,7 +80,7 @@ nfpms:
- deb
- rpm
files:
"./manpage/gh*.1": "/usr/share/man/man1"
"./share/man/man1/gh*.1": "/usr/share/man/man1"

scoop:
bucket:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ endif
.PHONY: site-publish


manpage:
share/man/man1/:
mkdir -p $@

.PHONY: manpages
manpages: manpage
go run ./cmd/gen-docs --man-page --doc-path ./manpage
go run ./cmd/gen-docs --man-page --doc-path ./share/man/man1/

0 comments on commit db2fac9

Please sign in to comment.