mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-05 02:08:26 +02:00
17 lines
314 B
Bash
Executable file
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
|