e9c09a7dd7
Note that fix-cglib-refs.patch is not suitable for upstream: http://code.google.com/p/mockito/issues/detail?id=373
21 lines
423 B
Bash
21 lines
423 B
Bash
#!/bin/sh
|
|
#set -x
|
|
|
|
VERSION=1.9.0
|
|
SRCDIR=mockito-${VERSION}
|
|
|
|
hg clone https://code.google.com/p/mockito/ ${SRCDIR}
|
|
pushd $SRCDIR
|
|
hg archive --prefix ${SRCDIR} -t tar -r ${VERSION} ../${SRCDIR}.tar
|
|
popd
|
|
|
|
rm -rf ${SRCDIR}
|
|
|
|
tar -xf ${SRCDIR}.tar
|
|
pushd ${SRCDIR}
|
|
rm -rf `find -name *.jar` build.gradle cglib-and-asm doc gradle gradlew gradlew.bat
|
|
dos2unix `find -name *.java`
|
|
popd
|
|
|
|
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}
|