From c6748eccdf9ff49440a44d162a8c5b123433bbdd Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 9 Dec 2025 21:33:21 -0600 Subject: [PATCH] Feature: Support additional specialized stand alone build settings and config.h files in package script. --- build/scripts/package.sh | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/build/scripts/package.sh b/build/scripts/package.sh index c6c6741..7608229 100644 --- a/build/scripts/package.sh +++ b/build/scripts/package.sh @@ -2176,10 +2176,12 @@ package_operation_stand_alone() { local directory= local directory_level= local directory_sub= + local i= + local j= + local level= local package= local package_sub= local packages= - local level= local path_= local path_sub= local path_name= @@ -2249,6 +2251,25 @@ package_operation_stand_alone() { break fi + for i in ${path_build}stand_alone/${name}.settings* ; do + + if [[ ${i} == ${path_build}stand_alone/${name}.settings ]] ; then continue ; fi + + j=$(echo "${i}" | sed -e "s|${path_build}stand_alone/${name}.settings|settings|") + + cp ${verbose_common} -R ${i} ${package}data/build/${j} + + if [[ ${?} -ne 0 ]] ; then + if [[ ${verbosity} != "quiet" ]] ; then + echo -e "${c_error}ERROR: Failed to copy file ${c_notice}${i}${c_error} to ${c_notice}${package}data/build/${j}${c_error}.${c_reset}" + fi + + let failure=1 + + break + fi + done + cp ${verbose_common} -R ${path_build}stand_alone/${name}.fakefile ${package}data/build/fakefile if [[ ${?} -ne 0 ]] ; then @@ -2337,6 +2358,26 @@ package_operation_stand_alone() { break fi + + for i in ${path_build}stand_alone/${name}.config*.h ; do + + if [[ ${i} == ${path_build}stand_alone/${name}.config.h ]] ; then continue ; fi + + j=$(echo "${i}" | sed -e "s|${path_build}stand_alone/${name}.config||" -e "s|\.h||") + j="config${j}.h" + + cp ${verbose_common} -R ${i} ${package}data/build/${j} + + if [[ ${?} -ne 0 ]] ; then + if [[ ${verbosity} != "quiet" ]] ; then + echo -e "${c_error}ERROR: Failed to copy file ${c_notice}${i}${c_error} to ${c_notice}${package}data/build/${j}${c_error}.${c_reset}" + fi + + let failure=1 + + break + fi + done fi if [[ -f ${package}data/build/dependencies ]] ; then -- 1.8.3.1