dropping a bunch of files that belong to other products.
[feisty_meow.git] / scripts / archival / pack_feisty_meow.sh
1 #!/bin/bash
2
3 # change to the home directory so we can find our files.
4 cd
5
6 TEMPO_FILE="$(mktemp "$TMP/zz_temp_hoople2.XXXXXX")"
7   # specify where we keep the file until we're ready to move it.
8
9 # shortcut for the lengthy exclude parameter.
10 export XC='--exclude='
11
12 # zip up hoople2, but exclude the file names we never want to see.
13 tar -czf $TEMPO_FILE feisty_meow $XC"*/*.tar.gz" $XC"*/*.zip" $XC"*/waste/*" $XC"*/logs/*" $XC"*/binaries/*" 
14
15 date_string="$(date +"%Y_%b_%e_%H%M" | sed -e 's/ //g')"
16
17 # now move the newest version into its resting place.  this prepares the
18 # feisty_meow package for uploading.
19 mv -v $TEMPO_FILE /var/www/feistymeow.org/feisty_meow_codebase_${date_string}.tar.gz
20