forked from enlightenment/efl
Let git-svn users get the right revision number to be used as version.
SVN revision: 49407
This commit is contained in:
parent
5cad6a1c95
commit
6600f0c43f
|
@ -4,6 +4,8 @@ m4_define([v_maj], [0])
|
||||||
m4_define([v_min], [9])
|
m4_define([v_min], [9])
|
||||||
m4_define([v_mic], [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_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
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
##-- When doing snapshots - change soname. remove dnl on below line
|
##-- When doing snapshots - change soname. remove dnl on below line
|
||||||
|
|
|
@ -4,6 +4,8 @@ m4_define([v_maj], [0])
|
||||||
m4_define([v_min], [9])
|
m4_define([v_min], [9])
|
||||||
m4_define([v_mic], [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_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
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
##-- When doing snapshots - change soname. remove dnl on below line
|
##-- When doing snapshots - change soname. remove dnl on below line
|
||||||
|
|
|
@ -4,6 +4,8 @@ m4_define([v_maj], [1])
|
||||||
m4_define([v_min], [2])
|
m4_define([v_min], [2])
|
||||||
m4_define([v_mic], [3])
|
m4_define([v_mic], [3])
|
||||||
m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g']))
|
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
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
##-- When doing snapshots - change soname. remove dnl on below line
|
##-- When doing snapshots - change soname. remove dnl on below line
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
m4_define([v_maj], [0])
|
m4_define([v_maj], [0])
|
||||||
m4_define([v_min], [2])
|
m4_define([v_min], [2])
|
||||||
m4_define([v_mic], [0])
|
m4_define([v_mic], [0])
|
||||||
m4_define([v_rev], m4_esyscmd([svnversion . | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g']))
|
m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g']))
|
||||||
m4_ifelse(m4_len[v_rev], [0], [m4_undefine([v_rev])])
|
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
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
##-- When doing snapshots - change soname. remove dnl on below line
|
##-- When doing snapshots - change soname. remove dnl on below line
|
||||||
|
|
|
@ -4,6 +4,8 @@ m4_define([v_maj], [0])
|
||||||
m4_define([v_min], [5])
|
m4_define([v_min], [5])
|
||||||
m4_define([v_mic], [0])
|
m4_define([v_mic], [0])
|
||||||
m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g']))
|
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
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
##-- When doing snapshots - change soname. remove dnl on below line
|
##-- When doing snapshots - change soname. remove dnl on below line
|
||||||
|
|
|
@ -4,6 +4,8 @@ m4_define([v_maj], [0])
|
||||||
m4_define([v_min], [9])
|
m4_define([v_min], [9])
|
||||||
m4_define([v_mic], [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_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
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
##-- When doing snapshots - change soname. remove dnl on below line
|
##-- When doing snapshots - change soname. remove dnl on below line
|
||||||
|
|
|
@ -4,6 +4,8 @@ m4_define([v_maj], [0])
|
||||||
m4_define([v_min], [9])
|
m4_define([v_min], [9])
|
||||||
m4_define([v_mic], [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_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
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
##-- When doing snapshots - change soname. remove dnl on below line
|
##-- When doing snapshots - change soname. remove dnl on below line
|
||||||
|
|
|
@ -4,6 +4,8 @@ m4_define([v_maj], [0])
|
||||||
m4_define([v_min], [9])
|
m4_define([v_min], [9])
|
||||||
m4_define([v_mic], [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_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
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
##-- When doing snapshots - change soname. remove dnl on below line
|
##-- When doing snapshots - change soname. remove dnl on below line
|
||||||
|
|
Loading…
Reference in New Issue