#!/bin/sh -e

VERSION=$2
TAR=../libcommons-lang3-java_$VERSION.orig.tar.xz
DIR=libcommons-lang3-java-$VERSION
TAG=$(echo "LANG_$VERSION" | sed -re's/\./_/g')

svn export http://svn.apache.org/repos/asf/commons/proper/lang/tags/${TAG} $DIR
XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR ../$TAG
