2015-04-29 16:47:06 +00:00
|
|
|
#!/bin/bash -ex
|
2012-02-22 14:02:33 +00:00
|
|
|
|
2018-12-05 14:56:45 +00:00
|
|
|
VERSION=2.23.9
|
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-12-05 14:56:45 +00:00
|
|
|
rm -rf `find -name *.jar` gradlew gradlew.bat src/javadoc
|
2012-08-31 15:45:18 +00:00
|
|
|
popd
|
2012-02-22 14:02:33 +00:00
|
|
|
|
|
|
|
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}
|