Skip to content

Commit

Permalink
Merge pull request #9 from gkze/fix-release-targets
Browse files Browse the repository at this point in the history
Get release targets working
  • Loading branch information
gkze authored Mar 15, 2020
2 parents 48734d5 + b4de42d commit 2956d12
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ release:
.PHONY: release-major
release-major:
@echo $(shell awk -F. '{printf "%s.%s.%s\n", $$1+1, $$2, $$3}' VERSION) > VERSION
git add VERSION
git commit -Sm "Release $(shell cat VERSION)"
@git add VERSION
@git commit -S -m "Release $(shell cat VERSION)"
$(MAKE) release

# Do a minor release
.PHONY: release-minor
release-minor:
@echo $(shell awk -F. '{printf "%s.%s.%s\n", $$1, $$2+1, $$3}' VERSION) > VERSION
git add VERSION
git commit -Sm "Release $(shell cat VERSION)"
@git add VERSION
@git commit -S -m "Release $(shell cat VERSION)"
$(MAKE) release

# Do a patch release
.PHONY: release-patch
release-patch:
@echo $(shell awk -F. '{printf "%s.%s.%s\n", $$1, $$2, $$3+1}' VERSION) > VERSION
git add VERSION
git commit -Sm "Release $(shell cat VERSION)"
@git add VERSION
@git commit -S -m "Release $(shell cat VERSION)"
$(MAKE) release

0 comments on commit 2956d12

Please sign in to comment.