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 | 700ee44 | 2020-05-26 00:33:31 +0200 | [diff] [blame] | 9 | # |
Bence Szépkúti | 1e14827 | 2020-08-07 13:07:28 +0200 | [diff] [blame] | 10 | # Copyright The Mbed TLS Contributors |
Bence Szépkúti | c7da1fe | 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. |
Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 24 | |
| 25 | set -eu |
| 26 | |
| 27 | CONFIG_H='include/mbedtls/config.h' |
| 28 | |
| 29 | if [ -r $CONFIG_H ]; then :; else |
| 30 | echo "$CONFIG_H not found" >&2 |
| 31 | exit 1 |
| 32 | fi |
| 33 | |
| 34 | CONFIG_BAK=${CONFIG_H}.bak |
| 35 | cp -p $CONFIG_H $CONFIG_BAK |
| 36 | |
Gilles Peskine | 5d46f6a | 2019-07-27 23:52:53 +0200 | [diff] [blame] | 37 | scripts/config.py realfull |
Manuel Pégourié-Gonnard | d091ed1 | 2016-01-12 14:17:52 +0000 | [diff] [blame] | 38 | make apidoc |
| 39 | |
| 40 | mv $CONFIG_BAK $CONFIG_H |