1#!/bin/sh 2 3# Make sure the doxygen documentation builds without warnings 4# 5# Copyright The Mbed TLS Contributors 6# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 7 8# Abort on errors (and uninitialised variables) 9set -eu 10 11if [ -d library -a -d include -a -d tests ]; then :; else 12 echo "Must be run from Mbed TLS root" >&2 13 exit 1 14fi 15 16if scripts/apidoc_full.sh > doc.out 2>doc.err; then :; else 17 cat doc.err 18 echo "FAIL" >&2 19 exit 1; 20fi 21 22cat doc.out doc.err | \ 23 grep -v "warning: ignoring unsupported tag" \ 24 > doc.filtered 25 26if grep -E "(warning|error):" doc.filtered; then 27 echo "FAIL" >&2 28 exit 1; 29fi 30 31make apidoc_clean 32rm -f doc.out doc.err doc.filtered 33