c4efd4
#!/bin/sh
c4efd4
c4efd4
rm -rf ./process-tarball-dir
c4efd4
mkdir ./process-tarball-dir
c4efd4
tar -xJf $1 --directory process-tarball-dir
c4efd4
c4efd4
rm -vf ./process-tarball-dir/*/testing/web-platform/tests/conformance-checkers/html-rdfa/0030-isvalid.html
c4efd4
rm -vf ./process-tarball-dir/*/testing/web-platform/tests/conformance-checkers/html-rdfa/0008-isvalid.html
c4efd4
rm -vf ./process-tarball-dir/*/testing/web-platform/tests/conformance-checkers/html-rdfalite/0030-isvalid.html
c4efd4
rm -vf ./process-tarball-dir/*/testing/web-platform/tests/css/css-ui/support/cursors/woolly-64.svg
c4efd4
rm -vf ./process-tarball-dir/*/testing/web-platform/tests/css/css-ui/support/cursors/woolly.svg
c4efd4
rm -vf ./process-tarball-dir/*/testing/web-platform/tests/conformance-checkers/html-rdfa/0230-novalid.html
c4efd4
rm -vf ./process-tarball-dir/*/testing/web-platform/tests/conformance-checkers/html-rdfa/0231-isvalid.html
c4efd4
rm -vf ./process-tarball-dir/*/layout/inspector/tests/chrome/test_fontVariationsAPI.css
c4efd4
c4efd4
processed_tarball=${1/source/processed-source}
c4efd4
c4efd4
cd ./process-tarball-dir
c4efd4
tar -cf - ./* | xz -9 -T 0 -f > $processed_tarball
c4efd4
mv $processed_tarball ..
c4efd4
cd ..
c4efd4
c4efd4
rm -rf ./process-tarball-dir