diff --git a/makefile b/makefile index 0f12706..d490f34 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,10 @@ -.PHONY: all clean pull get build build-in-container image test test-in-container install install-local +.PHONY: all clean pull get build build-in-container image test test-in-container install install-local gh-release install-manpages build-manpages install-mango-doc GOLANG := golang:1.19 GOOS := darwin +VERSION ?= 1.7.0 + all: clean pull test build clean: @@ -38,3 +40,12 @@ image: build # gh-release creates a new release in github and uploads the built binary. gh-release: gh release create ${VERSION} 'bin/septa.zip' + +install-mango-doc: + go install github.com/dherbst/mango-doc@latest + +build-manpages: + cd cmd/septa && mango-doc -version ${VERSION} > ../../man/septa.1 + +install-manpages: + sudo cp man/septa.1 /usr/local/share/man/man1/ diff --git a/man/septa.1 b/man/septa.1 index 5ba2a1d..a1f8098 100644 --- a/man/septa.1 +++ b/man/septa.1 @@ -1,5 +1,5 @@ .\" Automatically generated by mango(1) -.TH "septa" 1 "2023-12-29" "version 1.8.0" "User Commands" +.TH "septa" 1 "2023-12-29" "version 1.7.0" "User Commands" .SH "NAME" septa \- a command line tool to use the septa API to get information about SEPTA transportation. .SH "SYNOPSIS"