1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

version.sh: Fix spurious rebuilds.

Regression since 104f8ea8.
This commit is contained in:
Carl Eugen Hoyos 2016-03-10 09:53:10 +01:00
parent 689211d572
commit cb3f99e4d3

View File

@ -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//')