2015-04-29 16:47:06 +00:00
|
|
|
#!/bin/bash -ex
|
2012-02-22 14:02:33 +00:00
|
|
|
|
2015-04-29 16:47:06 +00:00
|
|
|
VERSION=1.10.19
|
2012-02-22 14:02:33 +00:00
|
|
|
SRCDIR=mockito-${VERSION}
|
|
|
|
|
2015-04-29 16:47:06 +00:00
|
|
|
git clone https://github.com/mockito/mockito.git ${SRCDIR}
|
2012-08-31 15:45:18 +00:00
|
|
|
pushd $SRCDIR
|
2015-04-29 16:47:06 +00:00
|
|
|
git archive --format=tar --prefix=${SRCDIR}/ v${VERSION} > ../${SRCDIR}.tar
|
2012-08-31 15:45:18 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
rm -rf ${SRCDIR}
|
|
|
|
|
|
|
|
tar -xf ${SRCDIR}.tar
|
2015-04-29 16:47:06 +00:00
|
|
|
rm ${SRCDIR}.tar
|
2012-08-31 15:45:18 +00:00
|
|
|
pushd ${SRCDIR}
|
2018-08-03 11:08:08 +00:00
|
|
|
rm -rf `find -name *.jar` build.gradle cglib-and-asm doc gradle gradlew gradlew.bat javadoc
|
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}
|