check_integrity.sh: check only version controlled files.

Checking files customized by the user is out of scope of this
tool and sometimes even workflow hindering.
This commit is contained in:
Markus Hitter 2016-04-11 22:50:57 +02:00
parent 595dd017ea
commit 32f10e4f4b
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ for T in "board" "printer"; do
print $2;
}
' < ../configtool/${T}.generic.h | while read W; do
for F in ${T}.*.h ../testcases/config.h.Profiling; do
for F in $(git ls-files ${T}.\*.h ../testcases/config.h.Profiling); do
if ! grep "#define" ${F} | grep -q ${W}; then
echo "Missing #define ${W} in ${F}."
echo 1 > ${EXITFILE}