2013-06-21 08:16:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
2013-08-02 08:16:32 +00:00
|
|
|
echo "Usage: ./create-tarball.sh VERSION"
|
2013-06-21 08:16:09 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
VERSION=${1}
|
|
|
|
NAME="junit"
|
|
|
|
|
2020-06-25 17:53:13 +00:00
|
|
|
wget https://github.com/${NAME}-team/${NAME}/archive/r${VERSION}.tar.gz
|
2013-06-21 08:16:09 +00:00
|
|
|
tar xvf r${VERSION}.tar.gz
|
|
|
|
|
|
|
|
(
|
2020-06-25 17:53:13 +00:00
|
|
|
cd ${NAME}-r${VERSION}
|
2013-06-21 08:16:09 +00:00
|
|
|
find . -name "*.jar" -delete
|
|
|
|
find . -name "*.class" -delete
|
|
|
|
)
|
|
|
|
|
2020-06-25 17:53:13 +00:00
|
|
|
tar czvf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-r${VERSION}
|
|
|
|
rm -Rf ${NAME}-${VERSION}.tar.gz
|
2013-06-21 08:16:09 +00:00
|
|
|
|