2018-07-18 13:19:55 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
name=testng
|
|
|
|
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
2019-06-06 12:19:34 +00:00
|
|
|
upstream_version="$(echo ${version} | tr '~' '-')"
|
2018-07-18 13:19:55 +00:00
|
|
|
|
|
|
|
# RETRIEVE
|
2019-06-06 12:19:34 +00:00
|
|
|
wget "https://github.com/cbeust/testng/archive/${upstream_version}.tar.gz" -O "${name}-${upstream_version}.orig.tar.gz"
|
2018-07-18 13:19:55 +00:00
|
|
|
|
|
|
|
rm -rf tarball-tmp
|
|
|
|
mkdir tarball-tmp
|
2020-01-27 15:33:48 +00:00
|
|
|
pushd tarball-tmp
|
2020-07-29 09:00:10 +00:00
|
|
|
tar -xf "../${name}-${upstream_version}.orig.tar.gz"
|
2018-07-18 13:19:55 +00:00
|
|
|
|
|
|
|
# CLEAN TARBALL
|
2021-11-08 13:09:07 +00:00
|
|
|
rm -r */bin*
|
|
|
|
rm -r */gradle*
|
2022-09-26 14:17:05 +00:00
|
|
|
find -name 'jquery-*.min.js' -delete
|
2018-07-18 13:19:55 +00:00
|
|
|
|
2020-01-27 15:33:48 +00:00
|
|
|
tar -czf "../${name}-${version}.tar.gz" *
|
|
|
|
popd
|
2019-06-06 12:19:34 +00:00
|
|
|
rm -r tarball-tmp "${name}-${upstream_version}.orig.tar.gz"
|