maven-surefire/generate-tarball.sh
Fridrich Strba b1f4b26c2a Accepting request 886739 from home:pmonrealgonzalez:branches:Java:packages
- Update generate-tarball.sh to use https URL [bsc#1182708]

- Update generate-tarball.sh to use https URL [bsc#1182708]

- Update generate-tarball.sh to use https URL [bsc#1182708]

OBS-URL: https://build.opensuse.org/request/show/886739
OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-surefire?expand=0&rev=15
2021-04-20 05:32:42 +00:00

22 lines
491 B
Bash

#!/bin/bash
set -e
name=maven-surefire
version="$(sed -n 's/Version:\s*//p' ${name}.spec)"
# RETRIEVE
wget "https://archive.apache.org/dist/maven/surefire/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"