|
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
|
|
Krzysztof Daniel |
15ffd13 |
TAG=R4_3_1
|
|
Krzysztof Daniel |
0548478 |
|
|
Krzysztof Daniel |
5eaee80 |
rm -rf R4_platform-aggregator-$TAG
|
|
Krzysztof Daniel |
15ffd13 |
rm -rf R4_platform-aggregator-$TAG.tar.xz
|
|
Krzysztof Daniel |
594dc7c |
|
|
Krzysztof Daniel |
15ffd13 |
git clone --branch $TAG --depth 1 $AGGREGATOR_PATH R4_platform-aggregator-$TAG
|
|
Krzysztof Daniel |
594dc7c |
|
|
Krzysztof Daniel |
5eaee80 |
pushd R4_platform-aggregator-$TAG
|
|
Krzysztof Daniel |
5eaee80 |
|
|
Krzysztof Daniel |
5eaee80 |
git submodule init
|
|
Krzysztof Daniel |
15ffd13 |
git submodule update
|
|
Krzysztof Daniel |
5eaee80 |
|
|
Krzysztof Daniel |
5eaee80 |
|
|
Krzysztof Daniel |
5eaee80 |
#comment this line to get a shallow clone.
|
|
Krzysztof Daniel |
5eaee80 |
find . -type d -name ".git" | xargs rm rm -rf
|
|
Krzysztof Daniel |
5eaee80 |
|
|
Krzysztof Daniel |
5eaee80 |
find . -type f -name *.class -exec rm -rf {} \;
|
|
Krzysztof Daniel |
5eaee80 |
|
|
Krzysztof Daniel |
5eaee80 |
find . -name *.jar -type f -exec rm -rf {} \;
|
|
Krzysztof Daniel |
594dc7c |
|
|
Krzysztof Daniel |
594dc7c |
find . -type f -name *.so -exec rm -rf {} \;
|
|
Krzysztof Daniel |
286cbad |
find . -type f -name *.dll -exec rm -rf {} \;
|
|
Krzysztof Daniel |
286cbad |
find . -type f -name *.jnilib -exec rm -rf {} \;
|
|
Krzysztof Daniel |
5eaee80 |
|
|
Krzysztof Daniel |
0548478 |
popd
|
|
Krzysztof Daniel |
5eaee80 |
|
|
Krzysztof Daniel |
15ffd13 |
tar cJf R4_platform-aggregator-$TAG.tar.xz R4_platform-aggregator-$TAG
|