4
TAR=../windows-remote-command_$VERSION.orig.tar.gz
5
DIR=windows-remote-command-$VERSION
6
TAG=$(echo "windows-remote-command-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
8
svn export https://svn.java.net/svn/hudson~svn/tags/${TAG}/ $DIR
9
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
12
# move to directory 'tarballs'
13
if [ -r .svn/deb-layout ]; then
15
mv $TAR $origDir && echo "moved $TAR to $origDir"