2020-10-15 17:51:16 +00:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
2020-10-27 16:50:52 +00:00
|
|
|
VERSION=3.5.13
|
2020-10-15 17:51:16 +00:00
|
|
|
SRCDIR=mockito-${VERSION}
|
|
|
|
|
|
|
|
git clone https://github.com/mockito/mockito.git ${SRCDIR}
|
|
|
|
pushd $SRCDIR
|
|
|
|
git archive --format=tar --prefix=${SRCDIR}/ v${VERSION} > ../${SRCDIR}.tar
|
|
|
|
popd
|
|
|
|
|
|
|
|
rm -rf ${SRCDIR}
|
|
|
|
|
|
|
|
tar -xf ${SRCDIR}.tar
|
|
|
|
rm ${SRCDIR}.tar
|
|
|
|
pushd ${SRCDIR}
|
|
|
|
rm -rf `find -name *.jar` gradlew gradlew.bat src/javadoc
|
|
|
|
popd
|
|
|
|
|
|
|
|
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}
|