| 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 |  | 
| Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 13 | if scripts/apidoc_full.sh > doc.out 2>doc.err; then :; else | 
| Manuel Pégourié-Gonnard | 1d552e7 | 2016-01-04 16:49:09 +0100 | [diff] [blame] | 14 | cat doc.err | 
|  | 15 | echo "FAIL" >&2 | 
|  | 16 | exit 1; | 
|  | 17 | fi | 
|  | 18 |  | 
| Manuel Pégourié-Gonnard | de7ae7b | 2016-01-08 16:47:33 +0100 | [diff] [blame] | 19 | cat doc.out doc.err | \ | 
|  | 20 | grep -v "warning: ignoring unsupported tag" \ | 
|  | 21 | > doc.filtered | 
|  | 22 |  | 
| Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 23 | if egrep "(warning|error):" doc.filtered; then | 
| Manuel Pégourié-Gonnard | 1d552e7 | 2016-01-04 16:49:09 +0100 | [diff] [blame] | 24 | echo "FAIL" >&2 | 
|  | 25 | exit 1; | 
|  | 26 | fi | 
|  | 27 |  | 
|  | 28 | make apidoc_clean | 
| Manuel Pégourié-Gonnard | de7ae7b | 2016-01-08 16:47:33 +0100 | [diff] [blame] | 29 | rm -f doc.out doc.err doc.filtered |