projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for bundle creator weirdo log file at FS root, finally, i hope.
[feisty_meow.git]
/
scripts
/
archival
/
pack_feisty_meow.sh
diff --git
a/scripts/archival/pack_feisty_meow.sh
b/scripts/archival/pack_feisty_meow.sh
index d4e8edce0729285a3ac8f0f201a46805399b1762..0a7029c0118953ec91ab66cb8f560fe909dbbfde 100644
(file)
--- a/
scripts/archival/pack_feisty_meow.sh
+++ b/
scripts/archival/pack_feisty_meow.sh
@@
-1,20
+1,25
@@
#!/bin/bash
#!/bin/bash
-# change to the home directory so we can find our files.
-cd
+source $FEISTY_MEOW_SCRIPTS/core/functions.sh
-TEMPO_FILE="$(mktemp "$TMP/zz_
temp_hoople2
.XXXXXX")"
+TEMPO_FILE="$(mktemp "$TMP/zz_
feistypack
.XXXXXX")"
# specify where we keep the file until we're ready to move it.
# shortcut for the lengthy exclude parameter.
export XC='--exclude='
# specify where we keep the file until we're ready to move it.
# shortcut for the lengthy exclude parameter.
export XC='--exclude='
-# zip up hoople2, but exclude the file names we never want to see.
-tar -czf $TEMPO_FILE feisty_meow $XC"*/*.tar.gz" $XC"*/*.zip" $XC"*/waste/*" $XC"*/logs/*" $XC"*/binaries/*"
+parent_dir="$(dirname "$FEISTY_MEOW_DIR")"
+base_dir="$(basename "$FEISTY_MEOW_DIR")"
-date_string="$(date +"%Y_%b_%e_%H%M" | sed -e 's/ //g')"
+pushd $parent_dir
+
+# zip up feisty meow, but exclude the file names we never want to see.
+tar -h -czf $TEMPO_FILE $base_dir $XC"*/*.tar.gz" $XC"*/*.zip" $XC"*/waste/*" $XC"*/logs/*" $XC"*/binaries/*" $XC"*.git*" $XC"*/code_guide/*"
# now move the newest version into its resting place. this prepares the
# feisty_meow package for uploading.
# now move the newest version into its resting place. this prepares the
# feisty_meow package for uploading.
-mv -v $TEMPO_FILE /var/www/feistymeow.org/feisty_meow_codebase_${date_string}.tar.gz
+mv -v $TEMPO_FILE $WEB_DIR/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz
+
+popd
+