Blame SOURCES/make-mockito-sourcetarball.sh

3dfed3
#!/bin/bash -ex
3dfed3
3dfed3
VERSION=1.10.19
3dfed3
SRCDIR=mockito-${VERSION}
3dfed3
3dfed3
git clone https://github.com/mockito/mockito.git ${SRCDIR}
3dfed3
pushd $SRCDIR
3dfed3
git archive --format=tar --prefix=${SRCDIR}/ v${VERSION} > ../${SRCDIR}.tar
3dfed3
popd
3dfed3
3dfed3
rm -rf ${SRCDIR}
3dfed3
3dfed3
tar -xf ${SRCDIR}.tar
3dfed3
rm ${SRCDIR}.tar
3dfed3
pushd ${SRCDIR}
3dfed3
rm -rf `find -name *.jar` build.gradle cglib-and-asm doc gradle gradlew gradlew.bat
3dfed3
dos2unix `find -name *.java`
3dfed3
popd
3dfed3
3dfed3
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}