Krzysztof Daniel 594dc7c
#!/bin/bash
Krzysztof Daniel 5dda4fa
set -e
Krzysztof Daniel 5eaee80
AGGREGATOR_PATH=git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git
a4e756e
TAG=I20180423-2000
Krzysztof Daniel 0548478
Krzysztof Daniel 5eaee80
rm -rf R4_platform-aggregator-$TAG
Krzysztof Daniel 781979c
rm -rf R4_platform-aggregator-$TAG.tar.xz
Krzysztof Daniel 594dc7c
4054230
git clone --recursive -j2 --branch $TAG $AGGREGATOR_PATH R4_platform-aggregator-$TAG
Mat Booth f0d416f
Krzysztof Daniel 5eaee80
pushd R4_platform-aggregator-$TAG
Krzysztof Daniel 5eaee80
5826134
rm -rf production
Krzysztof Daniel 5eaee80
54a04fb
# Comment this line to get a shallow clone.
54a04fb
find . -type d -name ".git" | xargs rm -rf
Krzysztof Daniel 5eaee80
62588ab
# Delete pre-built binary artifacts except some test data that cannot be generated
6ea29d2
find . ! -path "*/JCL/*" ! -name "rtstubs*.jar" ! -name "java10api.jar" \
62588ab
   -type f -name *.jar -delete
54a04fb
find . -type f -name *.class -delete
54a04fb
find . -type f -name *.so -delete
54a04fb
find . -type f -name *.dll -delete
54a04fb
find . -type f -name *.jnilib -delete
365159b
# Remove pre-compiled native launchers
365159b
rm -rf rt.equinox.binaries/org.eclipse.equinox.executable/{bin,contributed}/
Krzysztof Daniel 5eaee80
Krzysztof Daniel 0548478
popd 
Krzysztof Daniel 5eaee80
Mat Booth f0d416f
tar cJf R4_platform-aggregator-$TAG.tar.xz R4_platform-aggregator-$TAG