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