From: Carl Eugen Hoyos Date: Thu, 10 Mar 2016 08:53:10 +0000 (+0100) Subject: version.sh: Fix spurious rebuilds. X-Git-Tag: android-x86-7.1-r1~5999 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cb3f99e4d3f8ac7474d4637b37d39815597d612b;p=android-x86%2Fexternal-ffmpeg.git version.sh: Fix spurious rebuilds. Regression since 104f8ea8. --- diff --git a/version.sh b/version.sh index a9d7e398c8..edc4dd33c5 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//')