mockito/make-mockito-sourcetarball.sh

20 lines
397 B
Bash
Raw Normal View History

2015-04-29 16:47:06 +00:00
#!/bin/bash -ex
2012-02-22 14:02:33 +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}
pushd $SRCDIR
2015-04-29 16:47:06 +00:00
git archive --format=tar --prefix=${SRCDIR}/ v${VERSION} > ../${SRCDIR}.tar
popd
rm -rf ${SRCDIR}
tar -xf ${SRCDIR}.tar
2015-04-29 16:47:06 +00:00
rm ${SRCDIR}.tar
pushd ${SRCDIR}
rm -rf `find -name *.jar` gradlew gradlew.bat src/javadoc
popd
2012-02-22 14:02:33 +00:00
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}