Instead of 'c32651d', this change produces something like 'v0.7b1-1-gc32651d'
The first part is the name of the latest tag (usually a beta release), the second part are the number of commits after the latest tag and the last part is the version hash prefixed with 'g' (like git). --- version.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/version.sh b/version.sh index 6ec2b25..acff48b 100755 --- a/version.sh +++ b/version.sh @@ -1,7 +1,7 @@ #!/bin/sh # check for git short hash -revision=$(cd "$1" && git describe --always 2> /dev/null) +revision=$(cd "$1" && git describe --tags 2> /dev/null) test "$revision" && revision=git-$revision # no revision number found -- 1.7.0.4 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
