mockito/make-mockito-sourcetarball.sh
Severin Gehwolf e9c09a7dd7 More Import-Package fixes.
Note that fix-cglib-refs.patch is not suitable for upstream:
http://code.google.com/p/mockito/issues/detail?id=373
2012-09-06 15:24:23 +02:00

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}