fully functional death star
authorFred T. Hamster <fred@feistymeow.org>
Tue, 10 Feb 2026 05:23:22 +0000 (00:23 -0500)
committerFred T. Hamster <fred@feistymeow.org>
Tue, 10 Feb 2026 05:23:22 +0000 (00:23 -0500)
seems like buildor gen deps is back again.  it works with the debugging noise enabled; now we get to try with it off.
and i think i just saw how that will break everything (due to empty if then statements).  oh fudge.

nucleus/tools/clam_tools/value_tagger.cpp
scripts/clam/cpp/buildor_gen_deps.sh

index bd90b9106884040e04bf0f7178db6cc0d66108ba..b3866451e459db0335ad258148a88ddd825eef96 100644 (file)
@@ -959,7 +959,9 @@ HOOPLE_MAIN(value_tagger, )
 
 #ifdef __BUILD_STATIC_APPLICATION__
   // static dependencies found by buildor_gen_deps.sh:
+  #include <algorithms/sorts.cpp>
   #include <application/application_shell.cpp>
+  #include <application/callstack_tracker.cpp>
   #include <application/command_line.cpp>
   #include <application/windoze_helper.cpp>
   #include <basis/astring.cpp>
@@ -978,10 +980,10 @@ HOOPLE_MAIN(value_tagger, )
   #include <filesystem/directory.cpp>
   #include <filesystem/directory_tree.cpp>
   #include <filesystem/file_info.cpp>
-  #include <filesystem/file_time.cpp>
   #include <filesystem/filename.cpp>
   #include <filesystem/filename_list.cpp>
   #include <filesystem/filename_tree.cpp>
+  #include <filesystem/file_time.cpp>
   #include <filesystem/huge_file.cpp>
   #include <loggers/combo_logger.cpp>
   #include <loggers/console_logger.cpp>
@@ -1004,9 +1006,5 @@ HOOPLE_MAIN(value_tagger, )
   #include <textual/string_manipulation.cpp>
   #include <timely/earth_time.cpp>
   #include <timely/time_stamp.cpp>
-
-//added manually since buildor_gen_deps is hosed as of 2026-02-09 (or earlier, since i didn't notice).
-#include <application/callstack_tracker.cpp>
-
 #endif // __BUILD_STATIC_APPLICATION__
 
index fcd3dfad082e00a5858bb9c2f1522b260463a0f3..41d461fd9dfec750a5ede8a60df80f3eb1474f64 100644 (file)
@@ -23,7 +23,7 @@ if [ ! -z "$CLEAN" ]; then
 fi
 
 # uncomment to enable debugging noises.
-DEBUG_BUILDOR_GEN_DEPS=yo
+#DEBUG_BUILDOR_GEN_DEPS=yo
 
 # these semi-global variables used throughout the whole script to accumulate
 # information, rather than trying to juggle positional parameters everywhere.
@@ -259,10 +259,10 @@ function recurse_on_deps {
   ##########################################################################
 
   local current_includes="$(mktemp $TEMPORARIES_PILE/zz_buildor_deps_includes_${basetmp}.XXXXXX)"
-  rm -f "$current_includes"
+  \rm -f "$current_includes"
 
   local partial_file="$(mktemp $TEMPORARIES_PILE/zz_buildor_deps_filepart_${basetmp}.XXXXXX)"
-  rm -f "$partial_file"
+  \rm -f "$partial_file"
 
   # find all the includes in this file and save to the temp file.
   while read -r spoon; do
@@ -278,7 +278,7 @@ function recurse_on_deps {
 
   grep "^[ $TAB_CHAR]*#include.*" <"$partial_file" >>"$current_includes"
 
-  rm "$partial_file"
+  \rm "$partial_file"
 
   if [ ! -z "$DEBUG_BUILDOR_GEN_DEPS" ]; then
     echo "grabbing includes from: $to_examine"
@@ -400,36 +400,36 @@ function recurse_on_deps {
           active_deps+=($chew_toy)
         fi
       fi
-    fi
 
-    # now compute the path as if it was the implementation file (x.cpp)
-    # instead of being a header.  does that file exist?  if so, we'd like
-    # its dependencies also.
+      # now compute the path as if it was the implementation file (x.cpp)
+      # instead of being a header.  does that file exist?  if so, we'd like
+      # its dependencies also.
 #slow and calls external app:    local cpp_toy=$(echo -n $chew_toy | sed -e 's/^\([^\.]*\)\.h$/\1.cpp/')
-    local cpp_toy="${chew_toy%.h}.cpp"  # sweet and fast using just bash variable expansion.
-    if [ ! -z "$DEBUG_BUILDOR_GEN_DEPS" ]; then
-      echo "cpp_toy is '$cpp_toy' as derived from chew_toy '$chew_toy'"
-    fi
+      local cpp_toy="${chew_toy%.h}.cpp"  # sweet and fast using just bash variable expansion.
+      if [ ! -z "$DEBUG_BUILDOR_GEN_DEPS" ]; then
+        echo "cpp_toy is '$cpp_toy' as derived from chew_toy '$chew_toy'"
+      fi
 
-    # there's no point in adding it if the name didn't change.
-    if [ "$cpp_toy" != "$chew_toy" ]; then
-      resolve_filename $cpp_toy
+      # there's no point in adding it if the name didn't change.
+      if [ "$cpp_toy" != "$chew_toy" ]; then
+        resolve_filename $cpp_toy
 #hmmm: what if too many matches occur?
-      found_it="${resolve_target_array[0]}"
-
-      # if the dependency actually exists, then we'll add it to our list.
-      if [ ! -z "$found_it" ]; then
-        if add_new_dep "$found_it"; then
-          # that was a new dependency, so we'll continue examining it.
-          if ! already_listed "$found_it" ${active_deps[*]}; then
-            active_deps+=($found_it)
+        found_it="${resolve_target_array[0]}"
+
+        # if the dependency actually exists, then we'll add it to our list.
+        if [ ! -z "$found_it" ]; then
+          if add_new_dep "$found_it"; then
+            # that was a new dependency, so we'll continue examining it.
+            if ! already_listed "$found_it" ${active_deps[*]}; then
+              active_deps+=($found_it)
+            fi
           fi
         fi
       fi
     fi
   done <"$current_includes"
 
-  rm -f "$current_includes"
+  \rm -f "$current_includes"
 
   # keep going on the list after our modifications.
   if [ ${#active_deps[*]} -ne 0 ]; then recurse_on_deps ${active_deps[*]}; fi
@@ -481,7 +481,7 @@ function write_new_version {
 
   # now accumulate just the dependencies for a bit.
   local pending_deps="$(mktemp $TEMPORARIES_PILE/zz_buildor_deps_pendingdeps_${base}.XXXXXX)"
-  rm -f "$pending_deps"
+  \rm -f "$pending_deps"
 
   # iterate across all the dependencies we found.
   for line_please in ${dependency_accumulator[*]}; do
@@ -531,7 +531,7 @@ or within this script itself:
 
   sort "$pending_deps" >>"$replacement_file"
   exit_on_error "sorting pending deps into the replacement file"
-  rm -f "$pending_deps"
+  \rm -f "$pending_deps"
 
   echo -e "$closing_guard_line" >>"$replacement_file"
 
@@ -595,7 +595,7 @@ for curr_parm in $*; do
 #echo "looking at file: $line_found"
       find_dependencies "$line_found"
     done <"$outfile"
-    rm -f "$outfile"
+    \rm -f "$outfile"
   else
     echo "parameter is not a file or directory: $curr_parm"
   fi