[vala] Check for valac >= 0.7.0 in autogen.sh
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Check for valac >= 0.7.0 in autogen.sh
- Date: Mon, 13 Jul 2009 12:28:22 +0000 (UTC)
commit c27a20ba47b9a2226272b5e6846170c9c453e8ca
Author: Jürg Billeter <j bitron ch>
Date: Mon Jul 13 14:27:06 2009 +0200
Check for valac >= 0.7.0 in autogen.sh
autogen.sh | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 7708a0c..7ea434b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,6 +6,16 @@ test -z "$srcdir" && srcdir=.
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-6]$'
+then
+ echo "**Error**: You must have valac >= 0.7.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/"
+ exit 1
+fi
+
# Automake requires that ChangeLog exist.
touch ChangeLog
mkdir -p m4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]