From 759708e3173f6427f7fefb8be4b98e8083bcdd58 Mon Sep 17 00:00:00 2001 From: sachiel Date: Thu, 3 Jun 2010 07:40:54 +0000 Subject: [PATCH] Let git-svn users get the right revision number to be used as version. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49407 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 60beb79..1801acf 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,8 @@ m4_define([v_maj], [0]) m4_define([v_min], [9]) m4_define([v_mic], [9]) m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g'])) +m4_if(v_rev, [0], [m4_define([v_rev], +m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) ##-- When released, remove the dnl on the below line dnl m4_undefine([v_rev]) ##-- When doing snapshots - change soname. remove dnl on below line -- 2.7.4