repo.or.cz
/
gromacs
/
AngularHB.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed sc_power==48 crash in single precision
[gromacs/AngularHB.git]
/
scripts
/
checkheaders.sh
blob
c011b08abc775e4dd84b3073be0ae0723703f8ad
1
#! /bin/bash
2
3
incldir
=
"../include"
4
rm
-f
gromacs
5
ln
-s
$incldir
gromacs
6
7
if
[
-z
"
$1
"
];
then
8
files
=
$
(
cd
$incldir
;
find
-name
"*.h"
|
sed
's/^\./gromacs/'
)
9
else
10
files
=
"$@"
11
fi
12
13
for
i
in
$files
;
do
14
echo
$i
15
cat
<< EOF > t.c
16
#include <
$i
>
17
int main(){
18
return 0;
19
}
20
EOF
21
gcc
-I
.
-c
t.c
-D
bool
=
int ||
echo
"Failed"
22
done
23
rm
-f
gromacs t.
[
co
]