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