Compress source tarball

Related: rhbz#1986062
This commit is contained in:
Marian Koncek 2021-07-26 17:39:19 +02:00
parent bd75e6a790
commit 6f094be1ec
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ wget "http://www.antlr2.org/download/antlr-${version}.tar.gz" -O "${name}-${vers
rm -rf tarball-tmp
mkdir tarball-tmp
cd tarball-tmp
tar xf "../${name}-${version}.orig.tar.gz"
tar -xf "../${name}-${version}.orig.tar.gz"
# CLEAN TARBALL
# contain questionable things, such as csflex.exe
@ -20,6 +20,6 @@ find -name '*.exe' -delete
find -name '*.dll' -delete
find -name '*.so' -delete
tar cf "../${name}-${version}.tar.gz" *
tar -czf "../${name}-${version}.tar.gz" *
cd ..
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"