1596fd4458ccae3ea1660a30d175ddc2726cddb2
[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 \
24 \
25   ${XC}*incl.map ${XC}*incl.md5 ${XC}*incl.png \
26   ${XC}*8h.html ${XC}*8c.html ${XC}*8cpp.html ${XC}*8*source.html \
27   ${XC}class*html ${XC}class*js ${XC}class*members.html \
28   ${XC}struct*html ${XC}struct*js ${XC}struct*members.html \
29   ${XC}globals*html ${XC}functions*html \
30   ${XC}navtree*js ${XC}inherit_graph_* \
31   ${XC}namespace*js ${XC}namespace*html \
32   ${XC}dir_*html ${XC}dir_*map ${XC}dir_*md5 ${XC}dir_*png ${XC}dir_*js \
33   ${XC}*8cpp.js ${XC}*8h.js \
34   ${XC}*graph.map ${XC}*graph.md5 ${XC}*graph.png \
35 \
36   ${XC}*.tar.gz ${XC}*.zip \
37 \
38 $base_dir 
39
40 # note: not currently excluded!  cannot do these with --exclude= flag!
41 #${XC}*/waste/* ${XC}*/logs/* ${XC}*/binaries/* ${XC}*/kona/bin/*
42
43 # now move the newest version into its resting place.  this prepares the
44 # feisty_meow package for uploading.
45 mv -v $TEMPO_FILE $WEBBED_SITES/feistymeow.org/releases/feisty_meow_codebase_$(date_stringer).tar.gz
46
47 popd
48
49