a ton of changes to fix the production directory. formerly this directory $FEISTY_ME...
[feisty_meow.git] / scripts / generator / whack_build.sh
index a9dc095ffa41e17b9cd4892d2e307439a09ea131..95e203d1ed69c4c0584db387880a0395b2d149e1 100644 (file)
@@ -14,23 +14,25 @@ function whack_single_build_area()
   fi
 
   local choprepo="$(basename "$(dirname "$CLEANING_LOCALE")" )/$(basename "$CLEANING_LOCALE")"
-  echo $(date): "Cleaning up [$choprepo]..."
+  echo $(date): "cleaning up [$choprepo]..."
   if [ -z "$CLEANING_LOCALE" ]; then
     echo "The CLEANING_LOCALE variable is not set!"
     exit 3
   fi
 
-  export NEW_TMP="$(mktemp -d "$CLEANING_LOCALE/TEMPS.XXXXXX")"
+#old  export NEW_TMP="$(mktemp -d "$CLEANING_LOCALE/TEMPS.XXXXXX")"
+  export NEW_TMP="$(mktemp -d "$TMP/temps-build-whacking.XXXXXX")"
   export CRUDFILE="$(mktemp "$NEW_TMP/whack_build.XXXXXX")"
   echo "" &>"$CRUDFILE"
 
   CLEANING_TOP="$CLEANING_LOCALE/production"
 
-#  echo $(date): "  Cleaning up the build products..."
+#  echo $(date): "  cleaning up the build products..."
 
   # avoid accidentally removing way too much important stuff if our variables have not
   # been previously established.
-  local WASTE_DIR="$CLEANING_TOP/waste"
+  local GENERATED_DIR="$CLEANING_TOP/generated-feisty_meow"
+#*** hmmm: above is wrong place now!
   local TEMPORARIES_DIR="$CLEANING_TOP/temporaries"
 
   # kerzap.
@@ -41,18 +43,18 @@ function whack_single_build_area()
     "$CLEANING_TOP/logs" \
     "$CLEANING_TOP/objects" \
     "$TEMPORARIES_DIR" \
-    "$WASTE_DIR" \
+    "$GENERATED_DIR" \
     "$CLEANING_TOP/__build_"*.h \
     "$CLEANING_TOP/manifest.txt" 
 
-#  echo $(date): "  Cleaning generated files in source hierarchy..."
+#  echo $(date): "  cleaning generated files in source hierarchy..."
 
   if [ "$clean_src" == "clean" -o "$clean_src" == "CLEAN"  ]; then
-    echo $(date): "    ** Aggressive cleaning activated..."
-    perl "$FEISTY_MEOW_DIR/scripts/files/zapdirs.pl" "$CLEANING_TOP" >>"$CRUDFILE"
+    echo $(date): "    ** aggressive cleaning activated..."
+    perl "$FEISTY_MEOW_SCRIPTS/files/zapdirs.pl" "$FEISTY_MEOW_DIR" >>"$CRUDFILE"
   fi
 
-  echo $(date): "Cleaned [$choprepo]."
+  echo $(date): "cleaned [$choprepo]."
   rm -rf "$NEW_TMP"
   return 0
 }