493d787c21863e6b756a2746883782f61973960c
[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*/code_guide/* $XC*/kona/bin/*
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