checkpoint before running clean
authorChris Koeritz <fred@gruntose.com>
Mon, 3 Oct 2016 20:39:48 +0000 (16:39 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 3 Oct 2016 20:39:48 +0000 (16:39 -0400)
prior to launching new cleaning script; want to make sure it doesn't go rogue.

doc/clam_manual/clam_docs.html
nucleus/library/security/dll_security.h
nucleus/library/tests_algorithms/makefile
nucleus/library/tests_basis/makefile
nucleus/library/tests_filesystem/makefile
nucleus/library/tests_mathematics/makefile
nucleus/library/tests_nodes/makefile
nucleus/library/tests_timely/makefile
scripts/archival/snarf_feisty_meow.pl
scripts/clam/clean_subdirs.sh [new file with mode: 0644]
scripts/clam/rules.def

index caee455a94dac1b2630c626e09678a708b60d6aa..cce1f29288bfa9016ffbda98a748d3cedaf906b8 100644 (file)
             time_sta.cpp</tt> <br>
           <tt>TARGETS = mechanisms.dll</tt> <br>
           <tt>LOCAL_LIBS_USED = basis</tt> <br>
-          <tt>DEFINITIONS += BUILD_MECHANISMS USE_HOOPLE_DLLS</tt> </big></p>
+          <tt>DEFINITIONS += BUILD_MECHANISMS USE_FEISTY_MEOW_DLLS</tt> </big></p>
       <small> </small><big> </big><small> </small>
       <p><big><tt>include cpp/rules.def</tt></big></p>
       <small> </small><small></small>
index da26a14c55d2ff1c458ee09872f3d2e2b874087a..c4a405b7d9665b9dc76120a30ca9b74b30c13c1b 100644 (file)
 
 // windows class tags for the data structures library:
 // define BUILD_SECURITY when you are creating the dll and
-// define USE_HOOPLE_DLLS when you are importing a class from the dll.
+// define USE_FEISTY_MEOW_DLLS when you are importing a class from the dll.
 #ifdef BUILD_SECURITY
   #define    HOOPLE_DLL_EXPORT_CLASS
   #define HOOPLE_DLL_EXPORT_FUNCTION
-#elif defined(USE_HOOPLE_DLLS)
+#elif defined(USE_FEISTY_MEOW_DLLS)
   #define    HOOPLE_DLL_IMPORT_CLASS
   #define HOOPLE_DLL_IMPORT_FUNCTION
 #else
index 46f442b3f3d93d9dd744513f870f7534c535e5d9..fbf3be4ffedb3193c7b2e59d085d31956ccc3dc8 100644 (file)
@@ -3,7 +3,7 @@ include cpp/variables.def
 PROJECT = tests_algorithms
 TYPE = test
 TARGETS = test_sorts.exe 
-DEFINITIONS += USE_HOOPLE_DLLS
+DEFINITIONS += USE_FEISTY_MEOW_DLLS
 LOCAL_LIBS_USED = unit_test application processes loggers configuration mathematics nodes \
   structures textual timely filesystem structures basis 
 RUN_TARGETS = $(ACTUAL_TARGETS)
index 16165886b5f483e0e99f4b871faab012a87269dc..6c322004e8e73ec5a40d82f0e92cec2da5d682b8 100644 (file)
@@ -5,7 +5,7 @@ TYPE = test
 SOURCE = checkup.cpp
 TARGETS = test_array.exe test_boilerplate.exe test_mutex.exe test_string.exe \
   test_system_preconditions.exe
-DEFINITIONS += USE_HOOPLE_DLLS
+DEFINITIONS += USE_FEISTY_MEOW_DLLS
 LOCAL_LIBS_USED = unit_test application processes loggers configuration mathematics nodes \
   structures textual timely filesystem structures basis 
 RUN_TARGETS = $(ACTUAL_TARGETS)
index fb7e2a97e12605372cf1c0799acf4f314ba51e9d..fb163a7520686fbea7f41848832ecd340998c005 100644 (file)
@@ -4,7 +4,7 @@ PROJECT = tests_filesystem
 TYPE = test
 TARGETS = test_byte_filer.exe test_directory.exe test_directory_tree.exe test_file_info.exe \
   test_file_time.exe test_filename.exe test_huge_file.exe
-DEFINITIONS += USE_HOOPLE_DLLS
+DEFINITIONS += USE_FEISTY_MEOW_DLLS
 LOCAL_LIBS_USED = unit_test application configuration filesystem loggers \
   mathematics nodes processes structures textual timely structures basis  \
 loggers 
index bef10eb2db6a4bc8456e6b092ac7ac429b5bab85..4fb032a46e0458bdb351970bbecceada71ce83bd 100644 (file)
@@ -3,7 +3,7 @@ include cpp/variables.def
 PROJECT = tests_mathematics
 TYPE = test
 TARGETS = test_chaos.exe test_double_plus.exe test_math_ops.exe
-DEFINITIONS += USE_HOOPLE_DLLS
+DEFINITIONS += USE_FEISTY_MEOW_DLLS
 LOCAL_LIBS_USED = unit_test application configuration filesystem loggers mathematics nodes \
   structures processes textual timely structures basis 
 RUN_TARGETS = $(ACTUAL_TARGETS)
index 30ddb4921ede66b2a030583e1220c5066cb67dc5..a8c2e75e94137abf168a08f46e36ea9dd848a76f 100644 (file)
@@ -4,7 +4,7 @@ PROJECT = tests_node
 TYPE = test
 TARGETS = test_list.exe test_node.exe test_packable_tree.exe test_symbol_tree.exe test_tree.exe
 LOCAL_LIBS_USED = unit_test application nodes loggers processes filesystem configuration timely textual structures basis 
-DEFINITIONS += USE_HOOPLE_DLLS
+DEFINITIONS += USE_FEISTY_MEOW_DLLS
 RUN_TARGETS = $(ACTUAL_TARGETS)
 
 include cpp/rules.def
index a5e17ec038f63bafd12bb335b8251913ca379ca5..f3690f45ff3c9587c290ce832413287a280dd40d 100644 (file)
@@ -3,7 +3,7 @@ include cpp/variables.def
 PROJECT = tests_timely
 TYPE = test
 TARGETS = test_earth_time.exe test_stopwatch.exe
-DEFINITIONS += USE_HOOPLE_DLLS
+DEFINITIONS += USE_FEISTY_MEOW_DLLS
 LOCAL_LIBS_USED = unit_test application processes loggers configuration mathematics nodes \
   structures textual timely filesystem structures basis 
 RUN_TARGETS = $(ACTUAL_TARGETS)
index 1785a95817b5d389c15de7b6ce62238f6c002976..c532dddb587fea392f9b932ae448763907ffa608 100644 (file)
@@ -25,7 +25,7 @@ use Env qw(HOME);
 local($number) = &retrieve_number("aa_backup");
 
 # variables used throughout here.
-local($snarf_file_base) = &snarf_prefix("feisty_meow");
+local($snarf_file_base) = &snarf_prefix("archived_feisty_meow");
 local($snarf_file) = &snarf_name($snarf_file_base, $number);
 
 # store the archive number in the file for retrieval on the other side.
@@ -49,7 +49,6 @@ local($root) = &canonicalize("$HOME/feisty_meow");
 &backup_hierarchy($snarf_file_base, $number, $root, "kona");
 &backup_hierarchy($snarf_file_base, $number, $root, "nucleus");
 &backup_hierarchy($snarf_file_base, $number, $root, "octopi");
-&backup_hierarchy($snarf_file_base, $number, $root, "osgi");
 &backup_hierarchy($snarf_file_base, $number, $root, "scripts");
 &backup_hierarchy($snarf_file_base, $number, $root, "webby");
 
diff --git a/scripts/clam/clean_subdirs.sh b/scripts/clam/clean_subdirs.sh
new file mode 100644 (file)
index 0000000..dd06d0c
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# travels down each subdirectory and cleans using make.
+function clean_subdirectories()
+{
+  # keep the variable local to avoid contaminating
+  # other runs.
+  local smoot87
+
+  # find all the subdirectories.
+  for smoot87 in $(find . -mindepth 1 -maxdepth 1 -type f); do
+echo name is $i
+
+#    # skip if not a directory.
+#    if [ ! -d "$smoot87" ]; then continue; fi
+#echo "inside first check of it being dir: $smoot87"
+
+    # make sure there's a makefile there.
+    if [ -f "$smoot87/$MAKEFILE_NAME" ]; then
+echo "inside barriers, with filename=$smoot87 and all conditions met."
+      pushd "$smoot87"
+      make --silent NOT_FIRST_MAKE=t -f $MAKEFILE_NAME clean
+    else
+      echo "Skipping makefile-less directory $smoot87..."
+    fi
+  done
+}
+
+# execute our function on current directory.
+clean_subdirectories
+
index a526fb1f392a53c82c768a1ab43dab852f6d93a6..c4851ca8487378e057c9bab6405baf6ca4a67718 100644 (file)
@@ -110,12 +110,15 @@ exit 0'
 # files and such that were created by the project.  it invokes the makefile
 # again with the CLEAN variable defined so that this can be passed down into
 # all subsequent makes.
-clean: set_cleaner_variable clean_subdirs $(OTHER_CLEANS) ready_to_clean
+clean: set_cleaner_variable $(OTHER_CLEANS) scratch_other_cleans clean_subdirs  ready_to_clean
        # no code here.
 
 set_cleaner_variable:
        $(eval CLEAN := true)
 
+scratch_other_cleans:
+       $(eval OTHER_CLEANS := )
+
 ready_to_clean:
        @echo Whacking [$(CLEANUPS)]
        $(HIDESH) -c '\