first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / scripts / archival / pack_yeti.sh
1 #!/bin/bash
2
3 cd $YETI_DIR
4   # change to the yeti root.
5
6 cd ..
7   # go one level up.
8
9 export TEMPO_FILE="$(mktemp "$TMP/zz_temp_yeti.XXXXXX")"
10   # specify where we keep the file until we're ready to move it.
11
12 export XC='--exclude='
13
14 tar -czf $TEMPO_FILE $SCRIPT_SYSTEM/* $XC"*.svn/*" $XC"*CVS/*" $XC"*/whole_YETI.tar.gz" $XC"*/yeti_stat*" $XC"*/custom/*"
15   # exclude the file names we never want to see.
16
17 # the publishing location for the packing.
18 export YETI_WEB=/var/www/yeti
19 if [ ! -d $YETI_WEB ]; then
20   mkdir $YETI_WEB
21 fi
22 if [ ! -d $YETI_WEB ]; then
23   echo The web directory $YETI_WEB cannot be created.
24   exit 23
25 fi
26
27 # now move the newest version into its resting place.  this prepares the
28 # hierarchy for uploading; it should be self-consistent.
29 mv -v $TEMPO_FILE $YETI_WEB/whole_YETI.tar.gz
30