Blame SOURCES/create-tarball.sh

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