build: remove hardcoded name of version header

Fixes an oversight in 1316df7aa9.

CC: libav-stable@libav.org
This commit is contained in:
Janne Grunau 2016-09-12 21:52:01 +02:00
parent 8c201dde0a
commit 15fcf6292e

View File

@ -18,7 +18,7 @@ if [ -z "$2" ]; then
fi
NEW_REVISION="#define LIBAV_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
if test "$NEW_REVISION" != "$OLD_REVISION"; then