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
31d8cec
TAG=S4_6_1_RC4
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
c35a6c7
git clone --depth 1 --branch $TAG  $AGGREGATOR_PATH R4_platform-aggregator-$TAG
Mat Booth f0d416f
Krzysztof Daniel 5eaee80
pushd R4_platform-aggregator-$TAG
Krzysztof Daniel 5eaee80
Krzysztof Daniel 5eaee80
git submodule init
Krzysztof Daniel 781979c
git submodule update
Krzysztof Daniel 5eaee80
31d8cec
rm -rf production scripts
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
f2e612a
find . ! -path "*/JCL/*" ! -name "rtstubs*.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