freebsd_amp_hwpstate/contrib/libfido2/tools/include_check.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
511 B
Bash
Raw Normal View History

2021-10-01 23:52:55 +00:00
#!/bin/sh
# Copyright (c) 2019 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
2023-04-26 16:40:13 +00:00
# SPDX-License-Identifier: BSD-2-Clause
2021-10-01 23:52:55 +00:00
check() {
for f in $(find $1 -maxdepth 1 -name '*.h'); do
echo "#include \"$f\"" | \
cc $CFLAGS -Isrc -xc -c - -o /dev/null 2>&1
echo "$f $CFLAGS $?"
done
}
check examples
check fuzz
check openbsd-compat
CFLAGS="${CFLAGS} -D_FIDO_INTERNAL" check src
check src/fido.h
check src/fido
check tools