[FFmpeg-devel] [RFC][PATCH] version.sh: Include annotated tag in version string

Alexander Strasser eclipse7 at gmx.net
Fri Nov 29 15:02:11 CET 2013


Make it easier to loosely relate e.g. snapshot builds to releases.

Signed-off-by: Alexander Strasser <eclipse7 at gmx.net>
---

  We have come across a complaint about the generated versions
identifier strings of random builds being not expressive enough.

  Please test to see the result and voice your opinion.

 version.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/version.sh b/version.sh
index 8d084c2..ca55317 100755
--- a/version.sh
+++ b/version.sh
@@ -3,6 +3,7 @@
 # check for git short hash
 if ! test "$revision"; then
     revision=$(cd "$1" && git describe --tags --match N 2> /dev/null)
+    revision=${revision}-$(cd "$1" && git describe | cut -d- -f1 2> /dev/null)
 fi
 
 # Shallow Git clones (--depth) do not have the N tag:
-- 

  Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131129/7129a095/attachment.asc>


More information about the ffmpeg-devel mailing list