dropping a bunch of files that belong to other products.
[feisty_meow.git] / scripts / archival / pack_feisty_meow.sh
diff --git a/scripts/archival/pack_feisty_meow.sh b/scripts/archival/pack_feisty_meow.sh
new file mode 100644 (file)
index 0000000..d4e8edc
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# change to the home directory so we can find our files.
+cd
+
+TEMPO_FILE="$(mktemp "$TMP/zz_temp_hoople2.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/*" 
+
+date_string="$(date +"%Y_%b_%e_%H%M" | sed -e 's/ //g')"
+
+# 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
+