X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fpack_feisty_meow.sh;h=f98c004ae8f19ad5e91e546b4cd8b2b2f8b66ec4;hb=21f18eb5cf7bf7a4c645efa968bb391713639402;hp=ce1bb1cce5c80c1b204e857c5afa5662384aecc4;hpb=df2fd38ab5e5d97c24b22f24acef7d0b031d9739;p=feisty_meow.git diff --git a/scripts/archival/pack_feisty_meow.sh b/scripts/archival/pack_feisty_meow.sh index ce1bb1cc..f98c004a 100644 --- a/scripts/archival/pack_feisty_meow.sh +++ b/scripts/archival/pack_feisty_meow.sh @@ -1,7 +1,6 @@ #!/bin/bash -# change to the home directory so we can find our files. -cd +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" TEMPO_FILE="$(mktemp "$TMP/zz_feistypack.XXXXXX")" # specify where we keep the file until we're ready to move it. @@ -9,12 +8,18 @@ TEMPO_FILE="$(mktemp "$TMP/zz_feistypack.XXXXXX")" # 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/*" $XC"*/.git/*" +parent_dir="$(dirname "$FEISTY_MEOW_APEX")" +base_dir="$(basename "$FEISTY_MEOW_APEX")" -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/*" $XC"*/kona/bin/*" # now move the newest version into its resting place. this prepares the # feisty_meow package for uploading. -mv -v $TEMPO_FILE $WEB_DIR/feistymeow.org/feisty_meow_codebase_${date_string}.tar.gz +mv -v $TEMPO_FILE $WEBBED_SITES/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz + +popd +