lasso/tools/check-makefile.sh

15 lines
237 B
Bash
Executable File

#!/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