media/ffmpeg: only show VERSIONS notice on change

Check if the VERSIONS file actually changed before printing the related
message.

Also print the path to the VERSIONS file to give some more context.

BUG=None
TEST=media/ffmpeg/bindgen.sh

Change-Id: I6e7cd2ace37ca99ed744a307675272a2e3c205f6
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3893752
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-09-13 14:59:19 -07:00 committed by crosvm LUCI
parent 03e1b667e3
commit 150384ad2d

View file

@ -28,6 +28,8 @@ echo "avcodec: `pkg-config --modversion libavcodec`" >>$VERSIONS
echo "avutil: `pkg-config --modversion libavutil`" >>$VERSIONS
echo "swscale: `pkg-config --modversion libswscale`" >>$VERSIONS
echo "Libraries versions updated in the VERSIONS file."
echo "Please check the minimum required versions in build.rs and make sure that"
echo "the major number is the same"
if ! git --no-pager diff --exit-code $VERSIONS; then
echo "Libraries versions updated in the $VERSIONS file."
echo "Please check the minimum required versions in build.rs and make sure that"
echo "the major number is the same"
fi