aboutsummaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-20 03:49:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-20 04:07:34 +0200
commit56e11d230525bb9659e79d3253351b94ec3f8478 (patch)
treebfe7699bce96baf2092ba871a58c7d6845657632 /version.sh
parent4aeb7769136ae60586d88d17fcce05be9669e72a (diff)
parent8d3d3436e2596e27571b86eb97c66971a1a7431b (diff)
downloadffmpeg-56e11d230525bb9659e79d3253351b94ec3f8478.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: Drop git- prefix from version labels Use the contents of RELEASE as version fallback instead of 'UNKNOWN' path64/open64: filter out unsupported flags Add Release Notes sipr: Drop unused DSPContext sipr: include string.h for mem*() sipr: Use memmove() to copy overlapped buffers. h264: drop some ugly casts Conflicts: version.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/version.sh b/version.sh
index 51bca4f21a..41ae520ecc 100755
--- a/version.sh
+++ b/version.sh
@@ -3,11 +3,10 @@
# check for git short hash
if ! test "$revision"; then
revision=$(cd "$1" && git describe --tags --match N 2> /dev/null)
- test "$revision" && revision=git-$revision
fi
# no revision number found
-test "$revision" || revision=UNKNOWN
+test "$revision" || revision=$(cd "$1" && cat RELEASE 2> /dev/null)
# releases extract the version number from the VERSION file
version=$(cd "$1" && cat VERSION 2> /dev/null)