Make-source-tarball

PRODUCT=myproduct VERSION=${1:?No version specified} exec 3>&1 if svn status | tee /proc/self/fd/3 | grep -q ^ then echo Warning: svn status reports local changes >&2 fi exec 3>&- DIR=$( mktemp -d make-source-XXXXXXXX ) trap "rm -rf \"$DIR\"" 0 mkdir "$DIR/ips-publisher-$VERSION" rsync -a --exclude=.svn --exclude=make-source-tarball ./ "$DIR/$PRODUCT-$VERSION"/ tar -zcf ~/$PRODUCT-$VERSION.tar.gz -C "$DIR" $PRODUCT-$VERSION rm -rf "$DIR" ls -l ~/$PRODUCT-$VERSION.tar.gz
 * 1) !/bin/sh
 * 1) eof