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