]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
build: Require valac >= 0.12.0 to build from git
authorJürg Billeter <j@bitron.ch>
Thu, 21 Jul 2011 19:18:33 +0000 (21:18 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 21 Jul 2011 19:21:19 +0000 (21:21 +0200)
Fixes bug 655061.

autogen.sh

index 7db4f1411d559cc48a83814eb7e5d67acf95db1f..7d48667e96e472635ce12bd8cebc5b1a69a3f365 100755 (executable)
@@ -7,9 +7,9 @@ ORIGDIR=`pwd`
 cd $srcdir
 
 test -z "$VALAC" && VALAC=valac
-if ! $VALAC --version | sed -e 's/^.*\([0-9]\+\.[0-9]\+\)\.[0-9]\+.*$/\1/' | grep -vq '^0\.[0-9]$'
+if ! $VALAC --version | sed -e 's/^Vala \([0-9]\+\.[0-9]\+\).*$/\1/' | grep -vq '^0\.\([0-9]\|1[0-1]\)$'
 then
-    echo "**Error**: You must have valac >= 0.10.0 installed"
+    echo "**Error**: You must have valac >= 0.12.0 installed"
     echo "  to build vala. Download the appropriate package"
     echo "  from your distribution or get the source tarball at"
     echo "  http://download.gnome.org/sources/vala/"