attempting to fix fat releases
[feisty_meow.git] / scripts / archival / pack_feisty_meow.sh
index d4e8edce0729285a3ac8f0f201a46805399b1762..493d787c21863e6b756a2746883782f61973960c 100644 (file)
@@ -1,20 +1,25 @@
 #!/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_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='
 
-# 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_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 /var/www/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
+