Skip to content

Commit db2fac9

Browse files
committed
generate manpages into ./share/man/man1
1 parent dffb558 commit db2fac9

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/bin
2+
/share/man/man1
23
/gh-cli
34
.envrc
45
/dist
@@ -16,5 +17,3 @@
1617
.DS_Store
1718

1819
vendor/
19-
20-
manpage

.goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ archives:
3636
darwin: macOS
3737
format: tar.gz
3838
files:
39-
- manpage/gh*.1
39+
- ./share/man/man1/gh*.1
4040
- id: windows
4141
builds: [windows]
4242
<<: *archive_defaults
@@ -61,7 +61,7 @@ brews:
6161
install: |
6262
system "make" if build.head?
6363
bin.install "bin/gh"
64-
man1.install Dir["manpages/*.1"]
64+
man1.install Dir["./share/man/man1/gh*.1"]
6565
(bash_completion/"gh.sh").write `#{bin}/gh completion -s bash`
6666
(zsh_completion/"_gh").write `#{bin}/gh completion -s zsh`
6767
(fish_completion/"gh.fish").write `#{bin}/gh completion -s fish`
@@ -80,7 +80,7 @@ nfpms:
8080
- deb
8181
- rpm
8282
files:
83-
"./manpage/gh*.1": "/usr/share/man/man1"
83+
"./share/man/man1/gh*.1": "/usr/share/man/man1"
8484

8585
scoop:
8686
bucket:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ endif
4646
.PHONY: site-publish
4747

4848

49-
manpage:
49+
share/man/man1/:
5050
mkdir -p $@
5151

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

0 commit comments

Comments
 (0)