diff options
Diffstat (limited to 'tools/include_check.sh')
-rwxr-xr-x | tools/include_check.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/include_check.sh b/tools/include_check.sh index 9958c9a..e684d0b 100755 --- a/tools/include_check.sh +++ b/tools/include_check.sh | |||
@@ -1,5 +1,5 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # | 2 | |
3 | # Copyright (c) 2019 Yubico AB. All rights reserved. | 3 | # Copyright (c) 2019 Yubico AB. All rights reserved. |
4 | # Use of this source code is governed by a BSD-style | 4 | # Use of this source code is governed by a BSD-style |
5 | # license that can be found in the LICENSE file. | 5 | # license that can be found in the LICENSE file. |
@@ -8,14 +8,14 @@ check() { | |||
8 | for f in $(find $1 -maxdepth 1 -name '*.h'); do | 8 | for f in $(find $1 -maxdepth 1 -name '*.h'); do |
9 | echo "#include \"$f\"" | \ | 9 | echo "#include \"$f\"" | \ |
10 | cc $CFLAGS -Isrc -xc -c - -o /dev/null 2>&1 | 10 | cc $CFLAGS -Isrc -xc -c - -o /dev/null 2>&1 |
11 | echo $f $CFLAGS $? | 11 | echo "$f $CFLAGS $?" |
12 | done | 12 | done |
13 | } | 13 | } |
14 | 14 | ||
15 | check examples | 15 | check examples |
16 | check fuzz | 16 | check fuzz |
17 | check openbsd-compat | 17 | check openbsd-compat |
18 | CFLAGS=-D_FIDO_INTERNAL check src | 18 | CFLAGS="${CFLAGS} -D_FIDO_INTERNAL" check src |
19 | check src/fido.h | 19 | check src/fido.h |
20 | check src/fido | 20 | check src/fido |
21 | check tools | 21 | check tools |