version.sh: make it independant of version.h file name
authorTimothy Gu <timothygu99@gmail.com>
Fri, 29 Nov 2013 01:00:28 +0000 (17:00 -0800)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Nov 2013 14:04:24 +0000 (15:04 +0100)
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
version.sh

index 8d084c2..62882e0 100755 (executable)
@@ -40,9 +40,9 @@ if [ -z "$2" ]; then
 fi
 
 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
     echo "$NEW_REVISION" > "$2"
 fi