junit/create-tarball.sh
2020-06-25 16:05:41 +03:00

23 lines
417 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}4/archive/r${VERSION}.tar.gz
tar xvf r${VERSION}.tar.gz
(
cd ${NAME}4-r${VERSION}
find . -name "*.jar" -delete
find . -name "*.class" -delete
)
tar czvf ${NAME}4-${VERSION}-clean.tar.gz ${NAME}4-r${VERSION}
rm -Rf ${NAME}4-${VERSION}.tar.gz