mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
version.sh: make it independant of version.h file name
Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f2f17dd874
commit
802ba5f557
@ -40,9 +40,9 @@ if [ -z "$2" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
NEW_REVISION="#define FFMPEG_VERSION \"$version\""
|
NEW_REVISION="#define FFMPEG_VERSION \"$version\""
|
||||||
OLD_REVISION=$(cat version.h 2> /dev/null)
|
OLD_REVISION=$(cat "$2" 2> /dev/null)
|
||||||
|
|
||||||
# Update version.h only on revision changes to avoid spurious rebuilds
|
# Update version header only on revision changes to avoid spurious rebuilds
|
||||||
if test "$NEW_REVISION" != "$OLD_REVISION"; then
|
if test "$NEW_REVISION" != "$OLD_REVISION"; then
|
||||||
echo "$NEW_REVISION" > "$2"
|
echo "$NEW_REVISION" > "$2"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user