Properly compress taballs

This commit is contained in:
Marian Koncek 2020-01-27 16:21:37 +01:00
parent 69199fe236
commit 56cbd27e76

View File

@ -9,7 +9,7 @@ wget "https://github.com/${name}/${name}/archive/${name}-${version}.tar.gz" -O "
rm -rf tarball-tmp
mkdir tarball-tmp
cd tarball-tmp
pushd tarball-tmp
tar xf "../${name}-${version}.orig.tar.gz"
# CLEAN TARBALL
@ -18,6 +18,6 @@ find -name '*.class' -delete
# Contains minified js of uncertain origin
rm -r */website
tar cf "../${name}-${version}.tar.gz" *
cd ..
tar -czf "../${name}-${version}.tar.gz" *
popd
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"