mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 03:08:38 +01:00
26 lines
396 B
Bash
26 lines
396 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
run()
|
||
|
{
|
||
|
echo "$@"
|
||
|
"$@"
|
||
|
}
|
||
|
|
||
|
incdir="${top_srcdir}/include/bsd"
|
||
|
CPPFLAGS="$CPPFLAGS -DLIBBSD_OVERLAY"
|
||
|
|
||
|
for inc in $(cd $incdir; find -name '*.h' | sort | cut -c3-); do
|
||
|
cat >headers-gen.c <<SOURCE
|
||
|
#include <$inc>
|
||
|
int main() { return 0; }
|
||
|
SOURCE
|
||
|
|
||
|
echo "testing header $inc"
|
||
|
run $CC -isystem "$incdir" $CPPFLAGS headers-gen.c -o /dev/null
|
||
|
echo
|
||
|
|
||
|
rm -f headers-gen*
|
||
|
done
|