1daa6488db
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/junit#fa4ab6d4b836f0747cb7899bcedd9cecfc3e593d
23 lines
413 B
Bash
Executable File
23 lines
413 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "Usage: ./create-tarball.sh VERSION"
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=${1}
|
|
NAME="junit4"
|
|
|
|
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
|
|
|