Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 1 | #!/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úti | b7246ad | 2020-05-26 00:33:31 +0200 | [diff] [blame] | 9 | # |
| 10 | # Copyright (C) 2016, Arm Limited, All Rights Reserved |
Bence Szépkúti | 09b4f19 | 2020-05-26 01:54:15 +0200 | [diff] [blame^] | 11 | # 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úti | b7246ad | 2020-05-26 00:33:31 +0200 | [diff] [blame] | 24 | # |
| 25 | # This file is part of Mbed TLS (https://tls.mbed.org) |
Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 26 | |
| 27 | set -eu |
| 28 | |
| 29 | CONFIG_H='include/mbedtls/config.h' |
| 30 | |
| 31 | if [ -r $CONFIG_H ]; then :; else |
| 32 | echo "$CONFIG_H not found" >&2 |
| 33 | exit 1 |
| 34 | fi |
| 35 | |
| 36 | CONFIG_BAK=${CONFIG_H}.bak |
| 37 | cp -p $CONFIG_H $CONFIG_BAK |
| 38 | |
| 39 | scripts/config.pl realfull |
| 40 | make apidoc |
| 41 | |
| 42 | mv $CONFIG_BAK $CONFIG_H |