Skip to content

Commit

Permalink
Add makefile target to grep unreleased notes from the CHANGELOG file
Browse files Browse the repository at this point in the history
  • Loading branch information
olksdr committed Jan 26, 2022
1 parent c5a54a4 commit c98bf87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ ifndef GITHUB_TOKEN
endif


.PHONY: release-notes
release-notes: ## greps UNRELEASED notes from the CHANGELOG
@ awk '/## \[Unreleased\]/{flag=1;next}/## \[.*\] - /{flag=0}flag' CHANGELOG.md


.PHONY: help
help: ## this help
@ awk 'BEGIN {FS = ":.*##"; printf "Usage: make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m\t%s\n", $$1, $$2 }' $(MAKEFILE_LIST) | column -s$$'\t' -t
Expand Down

0 comments on commit c98bf87

Please sign in to comment.