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