[tracker] Check for valac >= 0.7.0 in autogen.sh



commit 4deaf26d1d3740a3a752a3dbf8921061b2e985be
Author: Jürg Billeter <j bitron ch>
Date:   Thu Apr 30 16:10:07 2009 +0200

    Check for valac >= 0.7.0 in autogen.sh
    
    Fixes GNOME Bug 580863.
---
 autogen.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index b372b70..15a60b7 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -14,6 +14,14 @@ REQUIRED_AUTOMAKE_VERSION=1.9
     exit 1
 }
 
+test -z "$VALAC" && VALAC=valac
+
+if ! $VALAC --version | sed -e 's/^.*\([0-9]\+\.[0-9]\+\)\.[0-9]\+.*$/\1/' | grep -vq '^0\.[0-6]$'
+then
+    echo "**Error**: You must have valac >= 0.7.0 installed to build $PKG_NAME"
+    exit 1
+fi
+
 # Automake requires that ChangeLog exist.
 touch ChangeLog
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]