Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
Make 'dirty'-tag optional when parsing the version
Browse files Browse the repository at this point in the history
Remember kids, don't do regexes.
  • Loading branch information
phijor committed May 30, 2016
1 parent 3d76bab commit 9d95ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ USE_VERSION := false
ifeq ($(shell git describe > /dev/null 2>&1 ; echo $$?), 0)
USE_VERSION := true
VERSION := $(shell git describe --tags --long --dirty --always | \
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)-\?.*-\(g[0-9a-f]*\)-\(.*\)/\1 \2 \3 \4 \5/g')
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)-\?.*-\(g[0-9a-f]*\)-\?\(.*\)/\1 \2 \3 \4 \5/g')
VERSION_MAJOR := $(word 1, $(VERSION))
VERSION_MINOR := $(word 2, $(VERSION))
VERSION_PATCH := $(word 3, $(VERSION))
Expand Down

0 comments on commit 9d95ac1

Please sign in to comment.