mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-13 17:15:25 -04:00
Switch to 4-space indentation
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
bf66e2cc8f
commit
3cbd69c4d4
@ -21,7 +21,7 @@ set -e
|
|||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
print_cpp () {
|
print_cpp () {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
/* Automatically generated file. Do not edit.
|
/* Automatically generated file. Do not edit.
|
||||||
*
|
*
|
||||||
* This program is a dummy C++ program to ensure Mbed TLS library header files
|
* This program is a dummy C++ program to ensure Mbed TLS library header files
|
||||||
@ -47,19 +47,20 @@ print_cpp () {
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
for header in include/mbedtls/*.h include/psa/*.h; do
|
for header in include/mbedtls/*.h include/psa/*.h; do
|
||||||
case ${header#include/} in
|
case ${header#include/} in
|
||||||
mbedtls/mbedtls_config.h) :;; # not meant for direct inclusion
|
mbedtls/mbedtls_config.h) :;; # not meant for direct inclusion
|
||||||
psa/crypto_config.h) :;; # not meant for direct inclusion
|
psa/crypto_config.h) :;; # not meant for direct inclusion
|
||||||
# Some of the psa/crypto_*.h headers are not meant to be included directly.
|
# Some of the psa/crypto_*.h headers are not meant to be included
|
||||||
# They do have include guards that make them no-ops if psa/crypto.h
|
# directly. They do have include guards that make them no-ops if
|
||||||
# has been included before. Since psa/crypto.h comes before psa/crypto_*.h
|
# psa/crypto.h has been included before. Since psa/crypto.h comes
|
||||||
# in the wildcard enumeration, we don't need to skip those headers.
|
# before psa/crypto_*.h in the wildcard enumeration, we don't need
|
||||||
*) echo "#include \"${header#include/}\"";;
|
# to skip those headers.
|
||||||
esac
|
*) echo "#include \"${header#include/}\"";;
|
||||||
done
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -72,14 +73,14 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ -d include/mbedtls ]; then
|
if [ -d include/mbedtls ]; then
|
||||||
:
|
:
|
||||||
elif [ -d ../include/mbedtls ]; then
|
elif [ -d ../include/mbedtls ]; then
|
||||||
cd ..
|
cd ..
|
||||||
elif [ -d ../../include/mbedtls ]; then
|
elif [ -d ../../include/mbedtls ]; then
|
||||||
cd ../..
|
cd ../..
|
||||||
else
|
else
|
||||||
echo >&2 "This script must be run from an Mbed TLS source tree."
|
echo >&2 "This script must be run from an Mbed TLS source tree."
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print_cpp >"${1:-programs/test/cpp_dummy_build.cpp}"
|
print_cpp >"${1:-programs/test/cpp_dummy_build.cpp}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user