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