diff options
author | Bruno Wolff III <bruno@wolff.to> | 2013-08-20 21:44:29 -0500 |
---|---|---|
committer | Bruno Wolff III <bruno@wolff.to> | 2013-08-20 21:44:29 -0500 |
commit | 2be322d62679f384dd7f15fdc1ccf5b675d3954c (patch) | |
tree | 48d289390a4abf902e1ca383832b67bef6402803 | |
parent | 11631d64815c3f0174e37f7a16f8702221099fb5 (diff) | |
download | spin-kickstarts-2be322d62679f384dd7f15fdc1ccf5b675d3954c.tar.gz spin-kickstarts-2be322d62679f384dd7f15fdc1ccf5b675d3954c.tar.xz spin-kickstarts-2be322d62679f384dd7f15fdc1ccf5b675d3954c.zip |
Use the higher tag when there are more than one0.21.1
If two or more tags of the right format point point to
HEAD, we probably want the later of the two.
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,5 +1,5 @@ # Get the version name first by seeing if HEAD is tagged -version := $(shell git tag --points-at HEAD -l '0.*.*' | head -1) +version := $(shell git tag --points-at HEAD -l '0.*.*' | sort -r | head -1) # And if it wasn't use a git hash ifeq ($(version),) version := $(shell git log -1 --abbrev=8 --pretty=git%h) |