Properly compress tarballs

This commit is contained in:
Marian Koncek 2020-01-27 16:33:48 +01:00
parent 979ced6428
commit 71d80a1171

View File

@ -10,13 +10,13 @@ wget "https://github.com/cbeust/testng/archive/${upstream_version}.tar.gz" -O "$
rm -rf tarball-tmp
mkdir tarball-tmp
cd tarball-tmp
pushd tarball-tmp
tar xf "../${name}-${upstream_version}.orig.tar.gz"
# CLEAN TARBALL
rm -r */gradle* */kobalt*
rm */src/main/resources/org/testng/jquery-*.js
tar cf "../${name}-${version}.tar.gz" *
cd ..
tar -czf "../${name}-${version}.tar.gz" *
popd
rm -r tarball-tmp "${name}-${upstream_version}.orig.tar.gz"