[SCM] libav/experimental: use git describe for naming version in pure git clones
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:22:04 UTC 2013
The following commit has been merged in the experimental branch:
commit 8032d1dee9dfa855a4e03da840b72a82e2f9a86b
Author: Ramiro Polla <ramiro at lisha.ufsc.br>
Date: Sun Jan 16 18:34:09 2011 +0000
use git describe for naming version in pure git clones
Patch by: Ramiro Polla <ramiro <DOT> polla gmail <DOT> com>
Originally committed as revision 26394 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/version.sh b/version.sh
index f8510ea..f45c60d 100755
--- a/version.sh
+++ b/version.sh
@@ -18,7 +18,7 @@ fi
# check for git short hash
if ! test $revision; then
- revision=$(cd "$1" && git log -1 --pretty=format:%h 2> /dev/null)
+ revision=$(cd "$1" && git describe --always 2> /dev/null)
test $revision && revision=git-$revision
fi
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list