summaryrefslogtreecommitdiff
path: root/legacy/efreet/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2010-06-09 18:22:47 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2010-06-09 18:22:47 +0000
commitddb8c95fa994ffc95758044d317879be46da3625 (patch)
tree5aded818d505efa3c8edad021a632b96fd45e552 /legacy/efreet/configure.ac
parent5ab3172ca086a8bbe152e336a09ac5fbc00d59d7 (diff)
SVN_REPO_PATH envvar during autoconf to use svnversion in there.
Some systems, like the Gentoo, copy the svn contents somewhere before doing the autoconf, this may result in lack of .svn and thus minor version "0". This patch introduces the $SVN_REPO_PATH to say where the svn checkout containing the ".svn" directory is. SVN revision: 49594
Diffstat (limited to 'legacy/efreet/configure.ac')
-rw-r--r--legacy/efreet/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/efreet/configure.ac b/legacy/efreet/configure.ac
index 832ae30ebb..88a37a69b1 100644
--- a/legacy/efreet/configure.ac
+++ b/legacy/efreet/configure.ac
@@ -3,7 +3,7 @@
3m4_define([v_maj], [0]) 3m4_define([v_maj], [0])
4m4_define([v_min], [5]) 4m4_define([v_min], [5])
5m4_define([v_mic], [0]) 5m4_define([v_mic], [0])
6m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) 6m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v exported || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7m4_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']))]) 7m4_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']))])
8##-- When released, remove the dnl on the below line 8##-- When released, remove the dnl on the below line
9dnl m4_undefine([v_rev]) 9dnl m4_undefine([v_rev])