blob: 1013cbd1643e99c7af36c53b036017378584fe7d [file] [log] [blame]
Manuel Pégourié-Gonnard9c81d012016-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
Manuel Pégourié-Gonnard43e015a2016-01-08 16:47:33 +010019cat doc.out doc.err | \
20 grep -v "warning: ignoring unsupported tag" \
21 > doc.filtered
22
23if grep "warning" doc.filtered; then
Manuel Pégourié-Gonnard9c81d012016-01-04 16:49:09 +010024 echo "FAIL" >&2
25 exit 1;
26fi
27
28make apidoc_clean
Manuel Pégourié-Gonnard43e015a2016-01-08 16:47:33 +010029rm -f doc.out doc.err doc.filtered