Properly compress taballs

This commit is contained in:
Marian Koncek 2020-01-27 16:12:06 +01:00
parent 1314b24023
commit 4e49eba9dd

View File

@ -10,7 +10,7 @@ wget "https://gitlab.ow2.org/asm/asm/repository/${gittag}/archive.tar.gz#/${name
rm -rf tarball-tmp rm -rf tarball-tmp
mkdir tarball-tmp mkdir tarball-tmp
cd tarball-tmp pushd tarball-tmp
tar xf "../${name}-${version}.orig.tar.gz" tar xf "../${name}-${version}.orig.tar.gz"
# Rename dir not to contain commit # Rename dir not to contain commit
@ -23,6 +23,6 @@ find -name '*.jar' -delete
find */asm{,-analysis,-commons} -name '*.class' -delete find */asm{,-analysis,-commons} -name '*.class' -delete
rm -r */gradle rm -r */gradle
tar cf "../${name}-${version}.tar.gz" * tar -czf "../${name}-${version}.tar.gz" *
cd .. popd
rm -r tarball-tmp "${name}-${version}.orig.tar.gz" rm -r tarball-tmp "${name}-${version}.orig.tar.gz"