| Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 1 | #!/bin/sh | 
|  | 2 |  | 
|  | 3 | # Generate doxygen documentation with a full config.h (this ensures that every | 
|  | 4 | # available flag is documented, and avoids warnings about documentation | 
|  | 5 | # without a corresponding #define). | 
|  | 6 | # | 
|  | 7 | # /!\ This must not be a Makefile target, as it would create a race condition | 
|  | 8 | # when multiple targets are invoked in the same parallel build. | 
|  | 9 |  | 
|  | 10 | set -eu | 
|  | 11 |  | 
|  | 12 | CONFIG_H='include/mbedtls/config.h' | 
|  | 13 |  | 
|  | 14 | if [ -r $CONFIG_H ]; then :; else | 
|  | 15 | echo "$CONFIG_H not found" >&2 | 
|  | 16 | exit 1 | 
|  | 17 | fi | 
|  | 18 |  | 
|  | 19 | CONFIG_BAK=${CONFIG_H}.bak | 
|  | 20 | cp -p $CONFIG_H $CONFIG_BAK | 
|  | 21 |  | 
|  | 22 | scripts/config.pl realfull | 
|  | 23 | make apidoc | 
|  | 24 |  | 
|  | 25 | mv $CONFIG_BAK $CONFIG_H |