Skip to content

Commit

Permalink
Merge pull request ghostunnel#215 from square/cs/release-man-page
Browse files Browse the repository at this point in the history
Generate man page for new releases
  • Loading branch information
csstaub authored Mar 29, 2019
2 parents c50df6a + 29ac2cd commit 7a7ded5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ deploy:
- dist/ghostunnel-${TRAVIS_TAG}-darwin-amd64-with-pkcs11
- dist/ghostunnel-${TRAVIS_TAG}-windows-386-with-pkcs11.exe
- dist/ghostunnel-${TRAVIS_TAG}-windows-amd64-with-pkcs11.exe
- dist/ghostunnel-${TRAVIS_TAG}.man
draft: true
skip_cleanup: true
on:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ VERSION := $(shell git describe --always --dirty)
ghostunnel: $(SOURCE_FILES)
go build -ldflags '-X main.version=${VERSION}' -o ghostunnel .

# Man page
ghostunnel.man: ghostunnel
./ghostunnel --help-man > $@

# Test binary with coverage instrumentation
ghostunnel.test: $(SOURCE_FILES)
go test -c -covermode=count -coverpkg .,./auth,./certloader,./proxy,./wildcard
Expand Down
2 changes: 2 additions & 0 deletions Makefile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ $(foreach goarch,$(XC_ARCH),$(foreach goos,$(XC_OS),$(eval $(call make-xc-target
dist:
@rm -rf "${CURRENT_DIR}/dist/"
@mkdir -p "${CURRENT_DIR}/dist/"
@$(MAKE) -f Makefile ghostunnel.man
@mv ghostunnel.man "${CURRENT_DIR}/dist/ghostunnel-${VERSION}.man"
@$(MAKE) -f "${MKFILE_PATH}" -j1 build
.PHONY: dist

0 comments on commit 7a7ded5

Please sign in to comment.