1a8e1175bSopenharmony_ci#!/bin/sh 2a8e1175bSopenharmony_ci 3a8e1175bSopenharmony_ci# Generate doxygen documentation with a full mbedtls_config.h (this ensures that every 4a8e1175bSopenharmony_ci# available flag is documented, and avoids warnings about documentation 5a8e1175bSopenharmony_ci# without a corresponding #define). 6a8e1175bSopenharmony_ci# 7a8e1175bSopenharmony_ci# /!\ This must not be a Makefile target, as it would create a race condition 8a8e1175bSopenharmony_ci# when multiple targets are invoked in the same parallel build. 9a8e1175bSopenharmony_ci# 10a8e1175bSopenharmony_ci# Copyright The Mbed TLS Contributors 11a8e1175bSopenharmony_ci# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 12a8e1175bSopenharmony_ci 13a8e1175bSopenharmony_ciset -eu 14a8e1175bSopenharmony_ci 15a8e1175bSopenharmony_ciCONFIG_H='include/mbedtls/mbedtls_config.h' 16a8e1175bSopenharmony_ci 17a8e1175bSopenharmony_ciif [ -r $CONFIG_H ]; then :; else 18a8e1175bSopenharmony_ci echo "$CONFIG_H not found" >&2 19a8e1175bSopenharmony_ci exit 1 20a8e1175bSopenharmony_cifi 21a8e1175bSopenharmony_ci 22a8e1175bSopenharmony_ciCONFIG_BAK=${CONFIG_H}.bak 23a8e1175bSopenharmony_cicp -p $CONFIG_H $CONFIG_BAK 24a8e1175bSopenharmony_ci 25a8e1175bSopenharmony_ciscripts/config.py realfull 26a8e1175bSopenharmony_cimake apidoc 27a8e1175bSopenharmony_ci 28a8e1175bSopenharmony_cimv $CONFIG_BAK $CONFIG_H 29