blob: 902966a9374046c7a6a2ac7385d98346d3a664a3 [file] [log] [blame]
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +00001#!/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.
Bence Szépkúti468a76f2020-05-26 00:33:31 +02009#
10# Copyright (C) 2016, Arm Limited, All Rights Reserved
Bence Szépkúti51b41d52020-05-26 01:54:15 +020011# SPDX-License-Identifier: Apache-2.0
12#
13# Licensed under the Apache License, Version 2.0 (the "License"); you may
14# not use this file except in compliance with the License.
15# You may obtain a copy of the License at
16#
17# http://www.apache.org/licenses/LICENSE-2.0
18#
19# Unless required by applicable law or agreed to in writing, software
20# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
21# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22# See the License for the specific language governing permissions and
23# limitations under the License.
Bence Szépkúti468a76f2020-05-26 00:33:31 +020024#
25# This file is part of Mbed TLS (https://tls.mbed.org)
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +000026
27set -eu
28
29CONFIG_H='include/mbedtls/config.h'
30
31if [ -r $CONFIG_H ]; then :; else
32 echo "$CONFIG_H not found" >&2
33 exit 1
34fi
35
36CONFIG_BAK=${CONFIG_H}.bak
37cp -p $CONFIG_H $CONFIG_BAK
38
39scripts/config.pl realfull
40make apidoc
41
42mv $CONFIG_BAK $CONFIG_H