lost track of attempts to dump cruft
[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 # note that this only works on file patterns apparently, like *.hosed,
10 # instead of working with general patterns (like */code_guide/*).
11 export XC='--exclude='
12
13 parent_dir="$(dirname "$FEISTY_MEOW_APEX")"
14 base_dir="$(basename "$FEISTY_MEOW_APEX")"
15
16 pushd $parent_dir
17
18 # archive feisty meow current state, but exclude the file names we never want
19 # to see in the archive.  the exclude vcs flag takes care of excluding
20 # revision control system private dirs.  first chunk of excludes is for the
21 # code guide files; this should wash out the majority of those fat things.
22 # next line is to exclude archives that shouldn't be in the output file.
23 tar -h -cz --exclude-vcs -f $TEMPO_FILE $base_dir \
24 \
25   ${XC}*incl.map ${XC}*incl.md5 ${XC}*incl.png \
26   ${XC}*8h.html ${XC}*8*source.html \
27   ${XC}*8cpp.js ${XC}*8h.js \
28 \
29   ${XC}*.tar.gz ${XC}*.zip \
30
31 # note: not currently excluded!  cannot do these with --exclude= flag!
32 #${XC}*/waste/* ${XC}*/logs/* ${XC}*/binaries/* ${XC}*/kona/bin/*
33
34 # now move the newest version into its resting place.  this prepares the
35 # feisty_meow package for uploading.
36 mv -v $TEMPO_FILE $WEBBED_SITES/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz
37
38 popd
39
40