blob: 03bbb64200c368d5e3c14b132e3f4bb752f86862 [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úti700ee442020-05-26 00:33:31 +02009#
Bence Szépkúti1e148272020-08-07 13:07:28 +020010# Copyright The Mbed TLS Contributors
Bence Szépkútic7da1fe2020-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.
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +000024
25set -eu
26
27CONFIG_H='include/mbedtls/config.h'
28
29if [ -r $CONFIG_H ]; then :; else
30 echo "$CONFIG_H not found" >&2
31 exit 1
32fi
33
34CONFIG_BAK=${CONFIG_H}.bak
35cp -p $CONFIG_H $CONFIG_BAK
36
Gilles Peskine5d46f6a2019-07-27 23:52:53 +020037scripts/config.py realfull
Manuel Pégourié-Gonnardd091ed12016-01-12 14:17:52 +000038make apidoc
39
40mv $CONFIG_BAK $CONFIG_H