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