aboutsummaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2009-09-24 16:54:26 +0000
committerAlex Converse <alex.converse@gmail.com>2009-09-24 16:54:26 +0000
commitd38b7b80d136a9fafa649cd0b1a82c9d9e366cd6 (patch)
tree78cb41e8cc27a9737a048d44702fbdec032cd8b5 /version.sh
parent98422c44cf86de6da8f73a7bd80284ed165c5a98 (diff)
downloadffmpeg-d38b7b80d136a9fafa649cd0b1a82c9d9e366cd6.tar.gz
Check if a git-svn revision number is available to try to get better version
information from git. Originally committed as revision 20015 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/version.sh b/version.sh
index 250caef007..8f57b75883 100755
--- a/version.sh
+++ b/version.sh
@@ -10,6 +10,12 @@ q
}' .svn/entries 2>/dev/null)
test $revision && revision=SVN-r$revision
+# check for git svn revision number
+if ! test $revision; then
+ revision=$(cd "$1" && git svn find-rev HEAD)
+ test $revision && revision=git-svn-r$revision
+fi
+
# check for git short hash
if ! test $revision; then
revision=$(cd "$1" && git log -1 --pretty=format:%h)