mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-21 14:42:27 +00:00
all.sh: extract repeated code to a function
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
78c7592755
commit
73e2b056ca
@ -376,6 +376,11 @@ cleanup()
|
|||||||
rm -f programs/test/cmake_package_install/cmake_package_install
|
rm -f programs/test/cmake_package_install/cmake_package_install
|
||||||
|
|
||||||
# Restore files that may have been clobbered by the job
|
# Restore files that may have been clobbered by the job
|
||||||
|
restore_backed_up_files
|
||||||
|
}
|
||||||
|
|
||||||
|
# Restore files that may have been clobbered
|
||||||
|
restore_backed_up_files () {
|
||||||
for x in $files_to_back_up; do
|
for x in $files_to_back_up; do
|
||||||
if [[ -e "$x$backup_suffix" ]]; then
|
if [[ -e "$x$backup_suffix" ]]; then
|
||||||
cp -p "$x$backup_suffix" "$x"
|
cp -p "$x$backup_suffix" "$x"
|
||||||
@ -1016,11 +1021,7 @@ helper_psasim_cleanup_before_client() {
|
|||||||
|
|
||||||
# Restore files that were backup before building library files. This
|
# Restore files that were backup before building library files. This
|
||||||
# includes $CONFIG_H and $CRYPTO_CONFIG_H.
|
# includes $CONFIG_H and $CRYPTO_CONFIG_H.
|
||||||
for x in $files_to_back_up; do
|
restore_backed_up_files
|
||||||
if [[ -e "$x$backup_suffix" ]]; then
|
|
||||||
cp -p "$x$backup_suffix" "$x"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Helper to build the libraries for client/server in PSASIM. If the server is
|
# Helper to build the libraries for client/server in PSASIM. If the server is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user