projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98422c4
)
Check if a git-svn revision number is available to try to get better version
author
Alex Converse
<alex.converse@gmail.com>
Thu, 24 Sep 2009 16:54:26 +0000
(16:54 +0000)
committer
Alex Converse
<alex.converse@gmail.com>
Thu, 24 Sep 2009 16:54:26 +0000
(16:54 +0000)
information from git.
Originally committed as revision 20015 to svn://svn.ffmpeg.org/ffmpeg/trunk
version.sh
patch
|
blob
|
history
diff --git
a/version.sh
b/version.sh
index
250caef
..
8f57b75
100755
(executable)
--- 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)