#!/bin/bash cd /var/www/hoople.org # change to the hoople directory. export TMP_FILE=$HOME/temp_hoople_$RANDOM.tar.gz # specify where we keep the file until we're ready to move it. export XC='--exclude=' tar -czf $TMP_FILE hoople $XC"*CVS/*" $XC"*/*.tar.gz" $XC"*/*.zip" $XC"*/3rdparty/*" $XC"hoople/dll/*" $XC"hoople/exe/*" $XC"hoople/lib/*" $XC"hoople/tests/*" $XC"hoople/install/*" $XC"hoople/install/*" $XC"hoople/include/*" $XC"hoople/logs/*" $XC"hoople/objects/*" $XC"hoople/docs/html/*" # exclude the file names we never want to see. # now move the newest version into its resting place. this prepares the # hoople package for uploading. mv -v $TMP_FILE hoople_library.tar.gz