Properly compress tarballs

This commit is contained in:
Marian Koncek 2020-01-27 16:28:30 +01:00
parent 1908562ef5
commit 38e3a0874b

View File

@ -9,13 +9,13 @@ wget "https://github.com/jhy/${name}/archive/${name}-${version}.tar.gz" -O "${na
rm -rf tarball-tmp
mkdir tarball-tmp
cd tarball-tmp
pushd tarball-tmp
tar xf "../${name}-${version}.orig.tar.gz"
# CLEAN TARBALL
# contains scraped news articles (non-free)
rm -r */src/test/resources
tar cf "../${name}-${version}.tar.gz" *
cd ..
tar -czf "../${name}-${version}.tar.gz" *
popd
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"