mockito/make-mockito-sourcetarball.sh

20 lines
415 B
Bash
Raw Normal View History

2012-02-22 14:02:33 +00:00
#!/bin/sh
VERSION=1.9.0
SRCDIR=mockito-${VERSION}
hg clone https://code.google.com/p/mockito/ ${SRCDIR}
pushd $SRCDIR
hg archive --prefix ${SRCDIR} -t tar -r ${VERSION} ../${SRCDIR}.tar
popd
rm -rf ${SRCDIR}
tar -xf ${SRCDIR}.tar
pushd ${SRCDIR}
rm -rf `find -name *.jar` build.gradle cglib-and-asm doc gradle gradlew gradlew.bat
2012-02-22 14:02:33 +00:00
dos2unix `find -name *.java`
popd
2012-02-22 14:02:33 +00:00
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}