* m4/version.m4: Make version detection work on BSD sed (e.g. Mac OS X)
authorStefan Ring <stefan@complang.tuwien.ac.at>
Fri, 17 Feb 2012 18:16:16 +0000 (19:16 +0100)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Fri, 17 Feb 2012 18:16:16 +0000 (19:16 +0100)
m4/version.m4

index 8b039463767cf6bb4e78d4132e845d10d4cdf3f3..4766ae765633208ab39ebfd875a0327119380340 100644 (file)
@@ -1,6 +1,6 @@
 dnl m4/version.m4
 dnl
-dnl Copyright (C) 2009
+dnl Copyright (C) 1996-2012
 dnl CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 dnl
 dnl This file is part of CACAO.
@@ -29,7 +29,7 @@ if test x`echo "$version" | $SED -e 's/[[0-9a-z+]]*//g'` = "x..";
 then
     major=`echo "$version" | $SED -e 's/\.[[0-9a-z.+]]*$//'`
     minor=`echo "$version" | $SED -e 's/^[[0-9]]*\.//' -e 's/\.[[0-9a-z.+]]*$//'`
-    micro=`echo "$version" | $SED -r -e 's/^[[0-9]]*\.[[0-9]]*\.([[0-9]]*).*/\1/'`
+    micro=`echo "$version" | $SED -e 's/^[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\).*/\1/'`
     extra=`echo "$version" | $SED -e 's/^[[0-9]]*\.[[0-9]]*\.[[0-9]]*//'`
 else
     major=`echo "$version" | $SED -e 's/\.[[0-9a-z.+]]*$//'`