summaryrefslogtreecommitdiff
path: root/tools/include_check.sh
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-04-17 20:57:34 +0100
committerColin Watson <cjwatson@debian.org>2020-04-18 09:48:21 +0100
commitdf7226c4b684fd229dc046388225c69ded877721 (patch)
treee69014e1ee868c4ec178b8a36baae7de31786beb /tools/include_check.sh
parentf794345c2d734f593da8ed7754e5dbb5809c688d (diff)
parent75073d0a8478441cc97a6efa10b566c5fb1dac81 (diff)
Update upstream source from tag 'upstream/1.4.0'
Update to upstream version '1.4.0' with Debian dir 64889867df57bd13ea0cb964223697d378d391ce
Diffstat (limited to 'tools/include_check.sh')
-rwxr-xr-xtools/include_check.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/include_check.sh b/tools/include_check.sh
new file mode 100755
index 0000000..9958c9a
--- /dev/null
+++ b/tools/include_check.sh
@@ -0,0 +1,21 @@
1#!/bin/bash
2#
3# Copyright (c) 2019 Yubico AB. All rights reserved.
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file.
6
7check() {
8 for f in $(find $1 -maxdepth 1 -name '*.h'); do
9 echo "#include \"$f\"" | \
10 cc $CFLAGS -Isrc -xc -c - -o /dev/null 2>&1
11 echo $f $CFLAGS $?
12 done
13}
14
15check examples
16check fuzz
17check openbsd-compat
18CFLAGS=-D_FIDO_INTERNAL check src
19check src/fido.h
20check src/fido
21check tools