[Asterisk-code-review] Makefile: Fix certified version numbers (asterisk[16])

cmaj asteriskteam at digium.com
Thu Aug 6 12:53:54 CDT 2020


cmaj has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14724 )


Change subject: Makefile: Fix certified version numbers
......................................................................

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
---
M Makefile
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/24/14724/1

diff --git a/Makefile b/Makefile
index 51812d7..49861ba 100644
--- a/Makefile
+++ b/Makefile
@@ -249,7 +249,7 @@
 endif
 ifneq ($(AWK),)
   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
 

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14724
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Icf241df0ff6db09011b8c936a317a84b0b634e16
Gerrit-Change-Number: 14724
Gerrit-PatchSet: 1
Gerrit-Owner: cmaj <chris at penguinpbx.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200806/4174d1a0/attachment.html>


More information about the asterisk-code-review mailing list