X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fpack_feisty_meow.sh;h=7d281cddff6f5c7a132922a87590a5411ad26fb9;hb=6a026f4bdc8b4afc0ee72c1307dada786110c0da;hp=c61ee5209b552f22e09358577e3c64eb7f8b61d5;hpb=da3c5dd10227906552c0ac53259628913bc369d5;p=feisty_meow.git diff --git a/scripts/archival/pack_feisty_meow.sh b/scripts/archival/pack_feisty_meow.sh index c61ee520..7d281cdd 100644 --- a/scripts/archival/pack_feisty_meow.sh +++ b/scripts/archival/pack_feisty_meow.sh @@ -1,24 +1,41 @@ #!/bin/bash -source $FEISTY_MEOW_SCRIPTS/core/functions.sh +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. # 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/*). export XC='--exclude=' -parent_dir="$(dirname "$FEISTY_MEOW_DIR")" -base_dir="$(basename "$FEISTY_MEOW_DIR")" +parent_dir="$(dirname "$FEISTY_MEOW_APEX")" +base_dir="$(basename "$FEISTY_MEOW_APEX")" pushd $parent_dir -# zip up hoople2, but exclude the file names we never want to see. -tar -czf $TEMPO_FILE $base_dir $XC"*/*.tar.gz" $XC"*/*.zip" $XC"*/waste/*" $XC"*/logs/*" $XC"*/binaries/*" $XC"*.git*" +# archive feisty meow current state, but exclude the file names we never want +# to see in the archive. the exclude vcs flag takes care of excluding +# revision control system private dirs. first chunk of excludes is for the +# code guide files; this should wash out the majority of those fat things. +# next line is to exclude archives that shouldn't be in the output file. +tar -h -cz --exclude-vcs -f $TEMPO_FILE \ +\ + ${XC}*incl.map ${XC}*incl.md5 ${XC}*incl.png \ + ${XC}*8h.html ${XC}*8*source.html \ + ${XC}*8cpp.js ${XC}*8h.js \ +\ + ${XC}*.tar.gz ${XC}*.zip \ +\ +$base_dir + +# note: not currently excluded! cannot do these with --exclude= flag! +#${XC}*/waste/* ${XC}*/logs/* ${XC}*/binaries/* ${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/releases/feisty_meow_codebase_$(date_stringer).tar.gz +mv -v $TEMPO_FILE $WEBBED_SITES/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz popd