]> Kevux Git Server - fll/commitdiff
Feature: Support additional specialized stand alone build settings and config.h files...
authorKevin Day <Kevin@kevux.org>
Wed, 10 Dec 2025 03:33:21 +0000 (21:33 -0600)
committerKevin Day <Kevin@kevux.org>
Wed, 10 Dec 2025 03:33:56 +0000 (21:33 -0600)
build/scripts/package.sh

index c6c674115e9b9a84d5fba8eb03b853ef2e8cce8d..7608229bf65a2ef95f3d0b1cb17439ec6d6a2743 100644 (file)
@@ -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