mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Makefile: Fix certified version numbers
Adds sed before awk to produce reasonable ASTERISKVERSIONNUM on certified versions of Asterisk eg. 16.8-cert3 is 160803 instead of the previous 00800. ASTERISK-29021 #close Change-Id: Icf241df0ff6db09011b8c936a317a84b0b634e16
This commit is contained in:
committed by
Friendly Automation
parent
16afb0a05d
commit
5609d008da
2
Makefile
2
Makefile
@@ -249,7 +249,7 @@ else
|
|||||||
endif
|
endif
|
||||||
ifneq ($(AWK),)
|
ifneq ($(AWK),)
|
||||||
ifneq ($(wildcard .version),)
|
ifneq ($(wildcard .version),)
|
||||||
ASTERISKVERSIONNUM:=$(shell $(AWK) -F. '{printf "%01d%02d%02d", $$1, $$2, $$3}' .version)
|
ASTERISKVERSIONNUM:=$(shell $(SED) -e 's/^certified\///' -e 's/-cert/./' .version | $(AWK) -F. '{printf "%01d%02d%02d", $$1, $$2, $$3}')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user