junit/create-tarball.sh
Fabio Valentini efbc750544
Revert "Upate to 4.13 and fix build with Java 11."
This reverts commit 62330143ac.

junit 4.13 breaks jmock and mockito.
2020-06-25 19:53:13 +02:00

23 lines
412 B
Bash
Executable File

#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: ./create-tarball.sh VERSION"
exit 1
fi
VERSION=${1}
NAME="junit"
wget https://github.com/${NAME}-team/${NAME}/archive/r${VERSION}.tar.gz
tar xvf r${VERSION}.tar.gz
(
cd ${NAME}-r${VERSION}
find . -name "*.jar" -delete
find . -name "*.class" -delete
)
tar czvf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-r${VERSION}
rm -Rf ${NAME}-${VERSION}.tar.gz