Merge pull request #6248 from gilles-peskine-arm/all-sh-force-3.2
Fix all.sh --force
This commit is contained in:
commit
f70f4ead7f
1 changed files with 7 additions and 2 deletions
|
@ -120,6 +120,9 @@
|
|||
# Treat uninitialised variables as errors.
|
||||
set -e -o pipefail -u
|
||||
|
||||
# Enable ksh/bash extended file matching patterns
|
||||
shopt -s extglob
|
||||
|
||||
pre_check_environment () {
|
||||
if [ -d library -a -d include -a -d tests ]; then :; else
|
||||
echo "Must be run from mbed TLS root" >&2
|
||||
|
@ -295,7 +298,7 @@ cleanup()
|
|||
-iname CMakeCache.txt -o \
|
||||
-path './cmake/*.cmake' \) -exec rm -f {} \+
|
||||
# Recover files overwritten by in-tree CMake builds
|
||||
rm -f include/Makefile include/mbedtls/Makefile programs/*/Makefile
|
||||
rm -f include/Makefile include/mbedtls/Makefile programs/!(fuzz)/Makefile
|
||||
|
||||
# Remove any artifacts from the component_test_cmake_as_subdirectory test.
|
||||
rm -rf programs/test/cmake_subproject/build
|
||||
|
@ -314,7 +317,9 @@ cleanup()
|
|||
|
||||
# Restore files that may have been clobbered by the job
|
||||
for x in $files_to_back_up; do
|
||||
cp -p "$x$backup_suffix" "$x"
|
||||
if [[ -e "$x$backup_suffix" ]]; then
|
||||
cp -p "$x$backup_suffix" "$x"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue