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