build: remove hardcoded name of version header
authorJanne Grunau <janne-libav@jannau.net>
Mon, 12 Sep 2016 19:52:01 +0000 (21:52 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Thu, 15 Sep 2016 19:59:15 +0000 (21:59 +0200)
Fixes an oversight in 1316df7aa98c4.

CC: libav-stable@libav.org
version.sh

index 6f72b2c..4689627 100755 (executable)
@@ -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