#!/bin/bash cd /var/www/hoople.org # change to the hoople directory. export TMP_FILE=$HOME/temp_msys_bins_$RANDOM.tar.gz # specify where we keep the file until we're ready to move it. export XC='--exclude=' tar -czf $TMP_FILE hoople/msys $XC"*CVS/*" $XC"*/*.tar.gz" $XC"*/*.zip" # exclude the file names we never want to see. # move the file into its well-known location. mv -v $TMP_FILE msys_bins.tar.gz