makefile: fix parsing the version from the spec file
The .* before the digit group is greedy and it catches the first version digit when the version >= 10. This commit changes the .* to [^[:digit:]]* so it doesn't catch the first digit.
This commit is contained in:
parent
75dd7886e4
commit
3f9e5e1e35
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -41,7 +41,7 @@ RST2MAN ?= rst2man
|
|||
# pre-fetched but evaluated at time of use.
|
||||
#
|
||||
|
||||
VERSION := $(shell (cd "$(SRCDIR)" && grep "^Version:" osbuild-composer.spec | sed 's/.*\([[:digit:]]\+\).*/\1/'))
|
||||
VERSION := $(shell (cd "$(SRCDIR)" && grep "^Version:" osbuild-composer.spec | sed 's/[^[:digit:]]*\([[:digit:]]\+\).*/\1/'))
|
||||
COMMIT = $(shell (cd "$(SRCDIR)" && git rev-parse HEAD))
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue