maven-surefire/generate-tarball.sh
Petr Šabata 81ae82b9e1 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/maven-surefire#f1fc29c52d0cf2a4a0966c4dd60271d4049efe84
2020-10-15 19:27:38 +02:00

22 lines
513 B
Bash
Executable File

#!/bin/bash
set -e
name=maven-surefire
version="$(sed -n 's/Version:\s*//p' *.spec)"
# RETRIEVE
wget "http://repo2.maven.org/maven2/org/apache/maven/surefire/surefire/${version}/surefire-${version}-source-release.zip" -O "${name}-${version}.orig.zip"
rm -rf tarball-tmp
mkdir tarball-tmp
cd tarball-tmp
unzip "../${name}-${version}.orig.zip"
# CLEAN TARBALL
find -name '*.jar' -delete
find -name '*.class' -delete
tar cf "../${name}-${version}.tar.gz" *
cd ..
rm -r tarball-tmp "${name}-${version}.orig.zip"