#!/bin/bash VERSION="3.2.3" TARGETDIR="/tmp" cd $VERSION tar --exclude .svn --exclude *~ -cvzf $TARGETDIR/modsurvey-docs-$VERSION.tgz webroot