projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleaning up old production directories now, so upgraded feisty doesn't have crud...
[feisty_meow.git]
/
scripts
/
generator
/
whack_build.sh
diff --git
a/scripts/generator/whack_build.sh
b/scripts/generator/whack_build.sh
index bedd3a098b79be756b75a87daccc52bc76ae5bb0..82812e93b8988f1b666a0d0bff1581f83fd19c1b 100644
(file)
--- a/
scripts/generator/whack_build.sh
+++ b/
scripts/generator/whack_build.sh
@@
-14,47
+14,53
@@
function whack_single_build_area()
fi
local choprepo="$(basename "$(dirname "$CLEANING_LOCALE")" )/$(basename "$CLEANING_LOCALE")"
fi
local choprepo="$(basename "$(dirname "$CLEANING_LOCALE")" )/$(basename "$CLEANING_LOCALE")"
- echo $(date): "
C
leaning up [$choprepo]..."
+ echo $(date): "
c
leaning up [$choprepo]..."
if [ -z "$CLEANING_LOCALE" ]; then
echo "The CLEANING_LOCALE variable is not set!"
exit 3
fi
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"
export CRUDFILE="$(mktemp "$NEW_TMP/whack_build.XXXXXX")"
echo "" &>"$CRUDFILE"
CLEANING_TOP="$CLEANING_LOCALE/production"
-# echo $(date): "
C
leaning up the build products..."
+# echo $(date): "
c
leaning up the build products..."
# avoid accidentally removing way too much important stuff if our variables have not
# been previously established.
# avoid accidentally removing way too much important stuff if our variables have not
# been previously established.
- local WASTE_DIR="$CLEANING_LOCALE/waste"
- local TEMPORARIES_DIR="$CLEANING_LOCALE/temporaries"
+ local GENERATED_DIR="$CLEANING_TOP/generated-feisty_meow"
+#*** hmmm: above is wrong place now!
+ local TEMPORARIES_DIR="$CLEANING_TOP/temporaries"
- # kerzap.
+ # kerzap.
the few cleanups in production directory remove older locations of generated files.
rm -rf \
rm -rf \
+ "$FEISTY_MEOW_DIR/generatedJUnitFiles" \
"$CLEANING_TOP/binaries" \
"$CLEANING_TOP/install" \
"$CLEANING_TOP/logs" \
"$CLEANING_TOP/objects" \
"$TEMPORARIES_DIR" \
"$CLEANING_TOP/binaries" \
"$CLEANING_TOP/install" \
"$CLEANING_TOP/logs" \
"$CLEANING_TOP/objects" \
"$TEMPORARIES_DIR" \
- "$
WASTE
_DIR" \
+ "$
GENERATED
_DIR" \
"$CLEANING_TOP/__build_"*.h \
"$CLEANING_TOP/__build_"*.h \
- "$CLEANING_TOP/manifest.txt"
+ "$CLEANING_TOP/manifest.txt" \
+ "$PRODUCTION_DIR/clam_bin" \
+ "$PRODUCTION_DIR/binaries" \
+ "$PRODUCTION_DIR/install" \
+ "$PRODUCTION_DIR/logs" \
+ "$PRODUCTION_DIR/waste"
-# echo $(date): "
C
leaning generated files in source hierarchy..."
+# echo $(date): "
c
leaning generated files in source hierarchy..."
if [ "$clean_src" == "clean" -o "$clean_src" == "CLEAN" ]; then
if [ "$clean_src" == "clean" -o "$clean_src" == "CLEAN" ]; then
- echo $(date): " **
A
ggressive cleaning activated..."
- perl "$
SHELLDIR/files/zapdirs.pl" "$CLEANING_TOP
" >>"$CRUDFILE"
+ echo $(date): " **
a
ggressive cleaning activated..."
+ perl "$
FEISTY_MEOW_SCRIPTS/files/zapdirs.pl" "$FEISTY_MEOW_DIR
" >>"$CRUDFILE"
fi
fi
- echo $(date): "Cleaned [$choprepo]."
-
+ echo $(date): "cleaned [$choprepo]."
rm -rf "$NEW_TMP"
rm -rf "$NEW_TMP"
-
return 0
}
return 0
}
@@
-62,7
+68,5
@@
function whack_single_build_area()
# clean all known hierarchies of build products...
# clean all known hierarchies of build products...
-whack_single_build_area "$REPOSITORY_DIR"
-
-
+whack_single_build_area "$FEISTY_MEOW_DIR"