eclipse/get-eclipse.sh
Mat Booth 39a3b2a9b7 Update to M6 pre-release of Luna 4.4.0.
- Drop upstreamed patches: do-not-run-as-root, bug-408505,
  bug-404448, osgi-unpack-sources
- Patch to use mockito-core 1.9
2014-03-31 13:40:18 +01:00

33 lines
840 B
Bash
Executable File

#!/bin/bash
set -e
AGGREGATOR_PATH=git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git
TAG=S4_4_0_M6
rm -rf R4_platform-aggregator-$TAG
rm -rf R4_platform-aggregator-$TAG.tar.xz
# adding --depth 1 here may result in a quicker clone, but did not work for me
git clone --branch $TAG $AGGREGATOR_PATH R4_platform-aggregator-$TAG
pushd R4_platform-aggregator-$TAG
git submodule init
git submodule update
#comment this line to get a shallow clone.
find . -type d -name ".git" | xargs rm rm -rf
find . -type f -name *.class -exec rm -rf {} \;
find . -name *.jar -type f -exec rm -rf {} \;
find . -type f -name *.so -exec rm -rf {} \;
find . -type f -name *.dll -exec rm -rf {} \;
find . -type f -name *.jnilib -exec rm -rf {} \;
popd
tar cJf R4_platform-aggregator-$TAG.tar.xz R4_platform-aggregator-$TAG