ea56162029
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/mockito.git#225823b156f1bc2a00a14e05f2fc90a66576ef0d
20 lines
397 B
Bash
Executable File
20 lines
397 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
VERSION=3.5.13
|
|
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}
|