Tools: add check-makefile.sh script to tools

This commit is contained in:
Benjamin Dauvergne 2010-06-12 00:43:31 +00:00
parent 477e6896a9
commit b773217b54
1 changed files with 14 additions and 0 deletions

14
tools/check-makefile.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
echo Check makefiles for missing .c or .h files
cd `dirname $0`/..
for i in `git ls-files *.c *.h`; do
pushd `dirname $i` >/dev/null
f=`basename $i`
if ! grep -q $f Makefile.am; then
echo $i
fi
popd >/dev/null
done