a ton of changes to fix the production directory. formerly this directory $FEISTY_ME...
[feisty_meow.git] / scripts / generator / whack_build.sh
index 0778fb6da08ef9bf1c4339d82ceb8c2c5cafc33c..95e203d1ed69c4c0584db387880a0395b2d149e1 100644 (file)
@@ -20,7 +20,8 @@ function whack_single_build_area()
     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"
 
@@ -30,7 +31,8 @@ function whack_single_build_area()
 
   # 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,7 +43,7 @@ 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" 
 
@@ -49,7 +51,7 @@ function whack_single_build_area()
 
   if [ "$clean_src" == "clean" -o "$clean_src" == "CLEAN"  ]; then
     echo $(date): "    ** aggressive cleaning activated..."
-    perl "$FEISTY_MEOW_DIR/scripts/files/zapdirs.pl" "$FEISTY_MEOW_DIR" >>"$CRUDFILE"
+    perl "$FEISTY_MEOW_SCRIPTS/files/zapdirs.pl" "$FEISTY_MEOW_DIR" >>"$CRUDFILE"
   fi
 
   echo $(date): "cleaned [$choprepo]."