blob: 5a00c90b73d72c0a238f8ab2a19873739374cf3c [file] [log] [blame]
Manuel Pégourié-Gonnard1d552e72016-01-04 16:49:09 +01001#!/bin/sh
2
3# Make sure the doxygen documentation builds without warnings
4
5# Abort on errors (and uninitiliased variables)
6set -eu
7
8if [ -d library -a -d include -a -d tests ]; then :; else
9 echo "Must be run from mbed TLS root" >&2
10 exit 1
11fi
12
13if make apidoc > doc.out 2>doc.err; then :; else
14 cat doc.err
15 echo "FAIL" >&2
16 exit 1;
17fi
18
19if grep warning doc.out doc.err; then
20 echo "FAIL" >&2
21 exit 1;
22fi
23
24make apidoc_clean
25rm -f doc.out doc.err