|
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
|
|
|
fca354a |
TAG=I20150601-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 |
|
|
Mat Booth |
f0d416f |
# adding --depth 1 here may result in a quicker clone, but did not work for me
|
|
Mat Booth |
f0d416f |
git clone --branch $TAG $AGGREGATOR_PATH R4_platform-aggregator-$TAG
|
|
Mat Booth |
f0d416f |
|
|
Krzysztof Daniel |
594dc7c |
|
|
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 |
|
|
|
a69dbca |
rm -rf bootstrap streams 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 |
|
|
|
54a04fb |
# Delete pre-built binary artifacts
|
|
|
ba42d13 |
find . -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
|