mockito/make-mockito-sourcetarball.sh

21 lines
453 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
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}
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` build.gradle cglib-and-asm doc gradle gradlew gradlew.bat
2012-02-22 14:02:33 +00:00
dos2unix `find -name *.java`
popd
2012-02-22 14:02:33 +00:00
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}