Skip to content
Permalink
Browse files

Makefile, VERSION: tag version numbers as v1.0.<COMMITS>

  • Loading branch information...
ydnar committed Jul 9, 2019
1 parent c709083 commit d452271f479924b09472c7d31c16d4b135961f39
Showing with 5 additions and 2 deletions.
  1. +4 −2 Makefile
  2. +1 −0 VERSION
@@ -19,8 +19,10 @@ normalize:
go run cmd/zonedb/main.go -w
make zones.go

formatted_date = $(shell date -u "+%Y.%m.%d.%H")
major_version=$(shell cat VERSION)
number_of_commits=$(shell git rev-list HEAD --count)
tag_version=v$(major_version).$(number_of_commits)

tag-version: .git/refs/heads/master
git tag v1.$(formatted_date) $(shell cat .git/refs/heads/master)
git tag $(tag_version) $(shell cat .git/refs/heads/master)
git push --tags
@@ -0,0 +1 @@
1.0

0 comments on commit d452271

Please sign in to comment.
You can’t perform that action at this time.