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