[Commits] [SCM] claws branch, master, updated. 3.13.0-89-gfacfb61

ticho at claws-mail.org ticho at claws-mail.org
Tue Dec 1 18:50:51 CET 2015


The branch, master has been updated
       via  facfb6174d9b5b97a144627ab44dbb61611ee882 (commit)
      from  a480d0a8702990b7bad4e8633b111c59a4179074 (commit)

Summary of changes:
 autogen.sh |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit facfb6174d9b5b97a144627ab44dbb61611ee882
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Tue Dec 1 18:50:29 2015 +0100

    Check for flex version properly in autogen.sh.

diff --git a/autogen.sh b/autogen.sh
index 0b8ff3c..093adb3 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -24,7 +24,13 @@ else
 	flex_major=`echo $flexver|sed "s/\..*//"`
 	flex_minor=`echo $flexver|sed "s/$flex_major\.\(.*\)\..*/\1/"`
 	flex_micro=`echo $flexver|sed "s/$flex_major\.$flex_minor\.\(.*\)/\1/"`
-	if [ $flex_major -lt 2 -o $flex_minor -lt 5 -o $flex_micro -lt 31 ]; then
+
+	flex_numversion=$(expr \
+		$flex_major \* 10000 + \
+		$flex_minor \* 100 + \
+		$flex_micro)
+
+	if [ $flex_numversion -lt 20531 ]; then
 		echo Flex 2.5.31 or greater is needed to compile Claws Mail git
 		exit 1
 	fi

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list