Browse Source

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
tags/v0.6
Alex Converse 15 years ago
parent
commit
d38b7b80d1
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      version.sh

+ 6
- 0
version.sh View File

@@ -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)


Loading…
Cancel
Save