X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fpack_feisty_meow.sh;fp=scripts%2Farchival%2Fpack_feisty_meow.sh;h=4e6466009610070616f67993d981600099148de6;hb=69fd603d5774adbf6f107a3523a0bc498f8d33e6;hp=1596fd4458ccae3ea1660a30d175ddc2726cddb2;hpb=21f41727f3cb21ec255b428d22403641981da864;p=feisty_meow.git diff --git a/scripts/archival/pack_feisty_meow.sh b/scripts/archival/pack_feisty_meow.sh index 1596fd44..4e646600 100644 --- 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" +# 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. +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/*). @@ -42,7 +53,7 @@ $base_dir # 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