Replace slave with agent
[gromacs.git] / scripts / checkheaders.sh
blobc011b08abc775e4dd84b3073be0ae0723703f8ad
1 #! /bin/bash
3 incldir="../include"
4 rm -f gromacs
5 ln -s $incldir gromacs
7 if [ -z "$1" ]; then
8 files=$(cd $incldir; find -name "*.h" | sed 's/^\./gromacs/')
9 else
10 files="$@"
13 for i in $files; do
14 echo $i
15 cat << EOF > t.c
16 #include <$i>
17 int main(){
18 return 0;
20 EOF
21 gcc -I. -c t.c -D bool=int || echo "Failed"
22 done
23 rm -f gromacs t.[co]