cairo/src/check-cairoint.sh
2007-04-03 20:30:30 -04:00

17 lines
314 B
Bash
Executable file

#!/bin/sh
LANG=C
test -z "$srcdir" && srcdir=.
status=0
echo 'Checking source files for missing or misplaced #include "cairoint.h"'
find "$srcdir" -name '*.c' -or -name '*.cpp' |
while read x; do
grep '\<include\>' "$x" /dev/null | head -n 1
done |
grep -v '"cairoint.h"' |
grep . && status = 1
exit $status