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