From: Kevin Day Date: Mon, 12 Dec 2022 03:39:36 +0000 (-0600) Subject: Bugfix: The bootstrap script needs to support settings-specific built files. X-Git-Tag: 0.6.2~17 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=0f03c6865ea58e25b3d01dd6c771ef9c9b88363c;p=fll Bugfix: The bootstrap script needs to support settings-specific built files. --- diff --git a/build/scripts/bootstrap.sh b/build/scripts/bootstrap.sh index ac7d5ae..c41ee0c 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 }