projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
21f4172
)
added check that releases directory exists
author
Chris Koeritz
<fred@gruntose.com>
Thu, 24 May 2018 00:22:43 +0000
(20:22 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Thu, 24 May 2018 00:22:43 +0000
(20:22 -0400)
scripts/archival/pack_feisty_meow.sh
patch
|
blob
|
history
diff --git
a/scripts/archival/pack_feisty_meow.sh
b/scripts/archival/pack_feisty_meow.sh
index 1596fd4458ccae3ea1660a30d175ddc2726cddb2..4e6466009610070616f67993d981600099148de6 100644
(file)
--- a/
scripts/archival/pack_feisty_meow.sh
+++ b/
scripts/archival/pack_feisty_meow.sh
@@
-2,9
+2,20
@@
source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+# location where we intend to store these packages.
+RELEASE_PATH="$WEBBED_SITES/feistymeow.org/releases"
+
+# check that we can see the release path.
+if [ ! -d "$RELEASE_PATH" ]; then
+ echo "The release path does not exist: $RELEASE_PATH"
+ exit 1
+fi
+
TEMPO_FILE="$(mktemp "$TMP/zz_feistypack.XXXXXX")"
# specify where we keep the file until we're ready to move it.
TEMPO_FILE="$(mktemp "$TMP/zz_feistypack.XXXXXX")"
# specify where we keep the file until we're ready to move it.
+log_feisty_meow_event "packing feisty meow in temporary file $TEMPO_FILE"
+
# shortcut for the lengthy exclude parameter.
# note that this only works on file patterns apparently, like *.hosed,
# instead of working with general patterns (like */code_guide/*).
# shortcut for the lengthy exclude parameter.
# note that this only works on file patterns apparently, like *.hosed,
# instead of working with general patterns (like */code_guide/*).
@@
-42,7
+53,7
@@
$base_dir
# 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
$WEBBED_SITES/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz
+mv -v $TEMPO_FILE
"$RELEASE_PATH/feisty_meow_codebase_$(date_stringer).tar.gz"
popd
popd