apidoc_full.sh 594 B

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