1#!/bin/sh 2 3# Generate doxygen documentation with a full mbedtls_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# Copyright The Mbed TLS Contributors 11# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 12 13set -eu 14 15CONFIG_H='include/mbedtls/mbedtls_config.h' 16 17if [ -r $CONFIG_H ]; then :; else 18 echo "$CONFIG_H not found" >&2 19 exit 1 20fi 21 22CONFIG_BAK=${CONFIG_H}.bak 23cp -p $CONFIG_H $CONFIG_BAK 24 25scripts/config.py realfull 26make apidoc 27 28mv $CONFIG_BAK $CONFIG_H 29