generate manpages into ./share/man/man1
This commit is contained in:
parent
dffb55889c
commit
db2fac93ea
3 changed files with 6 additions and 7 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
/bin
|
||||
/share/man/man1
|
||||
/gh-cli
|
||||
.envrc
|
||||
/dist
|
||||
|
|
@ -16,5 +17,3 @@
|
|||
.DS_Store
|
||||
|
||||
vendor/
|
||||
|
||||
manpage
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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`
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue