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}
|
2012-08-31 15:45:18 +00:00
|
|
|
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`
|
2012-08-31 15:45:18 +00:00
|
|
|
popd
|
2012-02-22 14:02:33 +00:00
|
|
|
|
|
|
|
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}
|