From d102a6dc85b4c6c002e5e633c0b13da6658cf81e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 11 Dec 2022 21:39:03 -0600 Subject: [PATCH] Bugfix: The bootstrap script needs to support settings-specific built files. --- build/scripts/bootstrap.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/build/scripts/bootstrap.sh b/build/scripts/bootstrap.sh index 389a37e..c811943 100644 --- a/build/scripts/bootstrap.sh +++ b/build/scripts/bootstrap.sh @@ -182,6 +182,9 @@ bootstrap_main() { settings_file="${path_data}build/$settings_name" else settings_file="$settings_name" + + # Extract the settings name from the path. + settings_name=$(basename $settings_name) fi settings_defines="${path_data}build/defines" @@ -889,7 +892,7 @@ bootstrap_prepare_build() { return $failure fi - touch ${project_built}.prepared + touch ${project_built}-${settings_name}.prepared } bootstrap_operation_build() { @@ -1346,7 +1349,7 @@ bootstrap_operation_build() { fi if [[ $failure -eq 0 ]] ; then - touch ${project_built_shared}.built + touch ${project_built_shared}-${settings_name}.built fi fi @@ -1467,7 +1470,7 @@ bootstrap_operation_build() { fi if [[ $failure -eq 0 ]] ; then - touch ${project_built_static}.built + touch ${project_built_static}-${settings_name}.built fi fi @@ -2623,15 +2626,15 @@ bootstrap_operation_clean() { done if [[ -f ${project_built}.prepared ]] ; then - rm $verbose_common -f ${project_built}.prepared + rm $verbose_common -f ${project_built}-${settings_name}.prepared fi - if [[ -f ${project_built_shared}.built ]] ; then - rm $verbose_common -f ${project_built_shared}.built + if [[ -f ${project_built_shared}-${settings_name}.built ]] ; then + rm $verbose_common -f ${project_built_shared}-${settings_name}.built fi - if [[ -f ${project_built_static}.built ]] ; then - rm $verbose_common -f ${project_built_static}.built + if [[ -f ${project_built_static}-${settings_name}.built ]] ; then + rm $verbose_common -f ${project_built_static}-${settings_name}.built fi } -- 1.8.3.1