6b7bc1bca58bfc22594357392afd6a93eb987bf3
[feisty_meow.git] / scripts / archival / pack_feisty_meow.sh
1 #!/bin/bash
2
3 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
4
5 TEMPO_FILE="$(mktemp "$TMP/zz_feistypack.XXXXXX")"
6   # specify where we keep the file until we're ready to move it.
7
8 # shortcut for the lengthy exclude parameter.
9 export XC='--exclude='
10
11 parent_dir="$(dirname "$FEISTY_MEOW_APEX")"
12 base_dir="$(basename "$FEISTY_MEOW_APEX")"
13
14 pushd $parent_dir
15
16 # zip up feisty meow, but exclude the file names we never want to see.
17 tar -h -czf $TEMPO_FILE $base_dir ${XC}*/*.tar.gz ${XC}*/*.zip ${XC}*/waste/* ${XC}*/logs/* ${XC}*/binaries/* ${XC}*.git* ${XC}*/kona/bin/* ${XC}code_guide
18
19 # now move the newest version into its resting place.  this prepares the
20 # feisty_meow package for uploading.
21 mv -v $TEMPO_FILE $WEBBED_SITES/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz
22
23 popd
24
25