summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2018-04-05 01:13:58 +0200
committerLou Berger <lberger@labn.net>2018-04-05 01:13:58 +0200
commit5483f10004a72a95ce843934353c5a5dceebaec5 (patch)
tree25c9468f2261fbe634a4d3e8b349de9564a909ec /Makefile.am
parentdoc: add note and example on use of VERSION_TYPE_DEV and CONFDATE (diff)
downloadfrr-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.am2
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@