22 lines
615 B
Bash
Executable File
22 lines
615 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
name=testng
|
|
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
|
upstream_version="$(echo ${version} | tr '~' '-')"
|
|
|
|
# RETRIEVE
|
|
rm -rf testng
|
|
git clone https://github.com/cbeust/testng.git
|
|
mv testng "${name}-${upstream_version}"
|
|
|
|
# CLEAN TARBALL
|
|
rm -rf "${name}-${upstream_version}"/.git
|
|
rm -rf "${name}-${upstream_version}"/.github
|
|
rm -r "${name}-${upstream_version}"/gradle*
|
|
rm -r "${name}-${upstream_version}"/kobalt*
|
|
rm "${name}-${upstream_version}"/src/main/resources/org/testng/jquery-*.js
|
|
|
|
tar -czf "${name}-${version}.tar.gz" "${name}-${upstream_version}"
|
|
rm -rf "${name}-${upstream_version}"
|