Skip to content

Commit

Permalink
Merge pull request #133 from slaclab/make_ver
Browse files Browse the repository at this point in the history
Fix version extraction when first letter is capital
  • Loading branch information
slacrherbst authored Jan 18, 2018
2 parents 1a23163 + 8003bb6 commit a790181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
# ----------------------------------------------------------------------------


VER_MAJOR := $(shell git describe --tags | awk -F'[v.-]' '{print $$2}')
VER_MINOR := $(shell git describe --tags | awk -F'[v.-]' '{print $$3}')
VER_MAINT := $(shell git describe --tags | awk -F'[v.-]' '{print $$4}')
VER_MAJOR := $(shell git describe --tags | awk -F'[Vv.-]' '{print $$2}')
VER_MINOR := $(shell git describe --tags | awk -F'[Vv.-]' '{print $$3}')
VER_MAINT := $(shell git describe --tags | awk -F'[Vv.-]' '{print $$4}')
VERSION := "$(VER_MAJOR).$(VER_MINOR).$(VER_MAINT)"

# Variables
Expand Down

0 comments on commit a790181

Please sign in to comment.