X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FGetSourceVersion;h=b57a6aa2f3af6652e71f9ba00050685afd3e4349;hb=c13297fa76e35185c4971d9903bd8b546101aa10;hp=5481f3915b4e5f421b1bc67738b803a1fe0f09d3;hpb=1619beb4e2edb69aeb78cd2338a00dc201974f89;p=oota-llvm.git diff --git a/utils/GetSourceVersion b/utils/GetSourceVersion index 5481f3915b4..b57a6aa2f3a 100755 --- a/utils/GetSourceVersion +++ b/utils/GetSourceVersion @@ -15,8 +15,8 @@ fi cd $1 if [ -d .svn ]; then - svnversion -elif [ -d .git/svn ]; then + svnversion | sed -e "s#\([0-9]*\)[A-Z]*#\1#" +elif [ -f .git/svn/.metadata ]; then git svn info | grep 'Revision:' | cut -d: -f2- elif [ -d .git ]; then git log -1 --pretty=format:%H