From fa36537f8285c7a317427b46cb4627d4ee2f7b5d Mon Sep 17 00:00:00 2001 From: Jan-E Date: Sun, 13 Mar 2016 18:18:22 +0100 Subject: [PATCH] Detect version for releases en dev versions --- lib/Makefile.msvc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile.msvc b/lib/Makefile.msvc index 4c2043af..5ab6a697 100644 --- a/lib/Makefile.msvc +++ b/lib/Makefile.msvc @@ -15,7 +15,7 @@ THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST)) USE_CYTHON := 0 #USE_CYTHON := 1 -_VERSION := $(shell grep AC_INIT ../configure.ac | cut -d'[' -f3 | sed -r -e 's/(-DEV)?], //g') +_VERSION := $(shell grep AC_INIT ../configure.ac | cut -d'[' -f3 | sed -e 's/-DEV//g' -e 's/], //g') _VERSION := $(subst ., ,$(_VERSION)) VER_MAJOR := $(word 1,$(_VERSION)) VER_MINOR := $(word 2,$(_VERSION))