1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Merge pull request #9437 from tom-daubney-arm/bp_3-6_standardise_proj_detection

[3.6 Backport] Standardise Project Detection
This commit is contained in:
Tom Cosgrove
2024-08-07 07:18:43 +00:00
committed by GitHub
3 changed files with 21 additions and 6 deletions

View File

@@ -30,9 +30,15 @@ EOF
set -eu
# Repository detection
in_mbedtls_build_dir () {
test -d library
# Project detection
PROJECT_NAME_FILE='./scripts/project_name.txt'
if read -r PROJECT_NAME < "$PROJECT_NAME_FILE"; then :; else
echo "$PROJECT_NAME_FILE does not exist... Exiting..." >&2
exit 1
fi
in_mbedtls_repo () {
test "$PROJECT_NAME" = "Mbed TLS"
}
# Collect stats and build a HTML report.
@@ -68,7 +74,7 @@ if [ $# -gt 0 ] && [ "$1" = "--help" ]; then
exit
fi
if in_mbedtls_build_dir; then
if in_mbedtls_repo; then
library_dir='library'
title='Mbed TLS'
else

1
scripts/project_name.txt Normal file
View File

@@ -0,0 +1 @@
Mbed TLS