Skip to content
Snippets Groups Projects
Commit 802ba5f5 authored by Timothy Gu's avatar Timothy Gu Committed by Michael Niedermayer
Browse files

version.sh: make it independant of version.h file name

parent f2f17dd8
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,9 @@ if [ -z "$2" ]; then ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment