ffmpeg: fix version script to produce correct ffmpeg version

Currently it outputs the LibreELEC git version (eg. 7.95.1-1538-g077ed6e) and
not ffmpeg version (eg. 3.3.2-30554d7).
This commit is contained in:
MilhouseVH 2017-09-05 09:44:52 +01:00
parent 45c82d4cc3
commit 4a241aec59

View File

@ -0,0 +1,14 @@
diff --git a/version.sh b/version.sh
index edc4dd3..d2b90a9 100755
--- a/version.sh
+++ b/version.sh
@@ -16,6 +16,9 @@ fi
test "$revision" || revision=$(cd "$1" &&
git log -1 --pretty=format:"git-%cd-%h" --date=short 2> /dev/null)
+# ignore any current revision, which is just that of the LibreELEC repository
+revision=
+
# Snapshots from gitweb are in a directory called ffmpeg-hhhhhhh or
# ffmpeg-HEAD-hhhhhhh.
if [ -z "$revision" ]; then