2019-04-02 11:08:56 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
name=maven-surefire
|
2021-04-20 07:32:42 +02:00
|
|
|
version="$(sed -n 's/Version:\s*//p' ${name}.spec)"
|
2019-04-02 11:08:56 +02:00
|
|
|
|
|
|
|
# RETRIEVE
|
2021-04-20 07:32:42 +02:00
|
|
|
wget "https://archive.apache.org/dist/maven/surefire/surefire-${version}-source-release.zip" -O "${name}-${version}.orig.zip"
|
2019-04-02 11:08:56 +02:00
|
|
|
|
|
|
|
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 czf "../${name}-${version}.tar.gz" *
|
|
|
|
cd ..
|
|
|
|
rm -r tarball-tmp "${name}-${version}.orig.zip"
|