mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-11-02 21:09:05 +00:00
139f4b4b2e
It just feels nicer to be explicit about the filenames and not rely on a specific naming. Also, in meson we can directly pass the target as argument, which expands to the filename but also adds a dependency.
17 lines
571 B
Bash
Executable file
17 lines
571 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
f_commited="$1"
|
|
f_generated="$2"
|
|
|
|
[ -n "$NMTST_NO_CHECK_SETTINGS_DOCS" ] && exit 0
|
|
|
|
cmp -s "$f_commited" "$f_generated" && exit 0
|
|
|
|
if [ "$NM_TEST_REGENERATE" = 1 ] ; then
|
|
cp -f "$f_generated" "$f_commited"
|
|
else
|
|
echo "*** Error: the generated file '$f_generated' differs from the source file '$f_commited'. You probably should copy the generated file over to the source file. You can skip this test by setting NMTST_NO_CHECK_SETTINGS_DOCS=yes. You can also automatically copy the file by rerunning the test with NM_TEST_REGENERATE=1"
|
|
exit 1
|
|
fi
|