diff options
author | Lou Berger <lberger@labn.net> | 2018-04-05 01:13:58 +0200 |
---|---|---|
committer | Lou Berger <lberger@labn.net> | 2018-04-05 01:13:58 +0200 |
commit | 5483f10004a72a95ce843934353c5a5dceebaec5 (patch) | |
tree | 25c9468f2261fbe634a4d3e8b349de9564a909ec /Makefile.am | |
parent | doc: add note and example on use of VERSION_TYPE_DEV and CONFDATE (diff) | |
download | frr-5483f10004a72a95ce843934353c5a5dceebaec5.tar.xz frr-5483f10004a72a95ce843934353c5a5dceebaec5.zip |
Makefile.am: change verstion type detection, if just numbers = _RELEASE, _DEV otherwise
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index e7d20be72..30150b594 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,7 @@ include common.am AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \ -I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib AM_CFLAGS = $(WERROR) -VERSION_TYPE := $(shell if echo $(VERSION) | grep -q dev; then echo DEV ; else echo RELEASE ; fi) +VERSION_TYPE := $(shell if echo $(VERSION) | grep -q '^[0-9\.]*$$'; then echo RELEASE ; else echo DEV ; fi) DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE) -DVERSION_TYPE_$(VERSION_TYPE) LIBCAP = @LIBCAP@ |