[FFmpeg-cvslog] version.sh: Fix spurious rebuilds.

Carl Eugen Hoyos git at videolan.org
Thu Mar 10 09:53:57 CET 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Mar 10 09:53:10 2016 +0100| [cb3f99e4d3f8ac7474d4637b37d39815597d612b] | committer: Carl Eugen Hoyos

version.sh: Fix spurious rebuilds.

Regression since 104f8ea8.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb3f99e4d3f8ac7474d4637b37d39815597d612b
---

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

diff --git a/version.sh b/version.sh
index a9d7e39..edc4dd3 100755
--- a/version.sh
+++ b/version.sh
@@ -46,7 +46,7 @@ if [ -z "$2" ]; then
 fi
 
 NEW_REVISION="#define FFMPEG_VERSION \"$version\""
-OLD_REVISION=$(cat "$2" 2> /dev/null | head -3 | tail -1)
+OLD_REVISION=$(cat "$2" 2> /dev/null | head -4 | tail -1)
 
 # String used for preprocessor guard
 GUARD=$(echo "$2" | sed 's/\//_/' | sed 's/\./_/' | tr '[:lower:]' '[:upper:]' | sed 's/LIB//')



More information about the ffmpeg-cvslog mailing list