You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
566 B
26 lines
566 B
#!/bin/bash
|
|
set -e
|
|
|
|
name=maven-surefire
|
|
if [[ -n "$1" ]]; then
|
|
version="$1"
|
|
else
|
|
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
|
fi
|
|
|
|
# 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 czf "../${name}-${version}.tar.gz" *
|
|
cd ..
|
|
rm -r tarball-tmp "${name}-${version}.orig.zip"
|