Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 8a422e9

Browse files
committed
Fix annoying awk warning
1 parent 2f21abd commit 8a422e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gitdescribe := $(shell git describe --tags --match [0-9]*)
55
lasttag := $(shell git describe --tags --match [0-9]* --abbrev=0)
66

77
version ?= $(lasttag)
8-
versionlabel = $(shell echo ${version} | awk '{ sub("^[0-9]+\.[0-9]+\.[0-9]+-?", "", $$1); print }')
8+
versionlabel = $(shell echo ${version} | awk '{ sub("^[0-9]+.[0-9]+.[0-9]+-?", "", $$1); print }')
99
versionnumber = $(shell echo ${version} | awk '{ sub("-.*$$", "", $$1); print }')
1010

1111
pkgversion ?= 1

0 commit comments

Comments
 (0)