summaryrefslogtreecommitdiffstats
path: root/tools/check-makefile.sh
blob: 84725a232af15e53a8658fbd14868a8907d62362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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