eclipse/get-eclipse.sh

33 lines
837 B
Bash
Raw Normal View History

2012-07-26 10:25:54 +00:00
#!/bin/bash
2013-03-15 08:27:43 +00:00
set -e
2013-05-02 12:02:12 +00:00
AGGREGATOR_PATH=git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git
2014-03-14 17:26:14 +00:00
TAG=R4_3_2
2012-09-19 11:20:23 +00:00
2013-05-02 12:02:12 +00:00
rm -rf R4_platform-aggregator-$TAG
rm -rf R4_platform-aggregator-$TAG.tar.xz
2012-07-26 10:25:54 +00:00
2014-03-14 17:26:14 +00:00
# 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
2012-07-26 10:25:54 +00:00
2013-05-02 12:02:12 +00:00
pushd R4_platform-aggregator-$TAG
git submodule init
git submodule update
2013-05-02 12:02:12 +00:00
#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 {} \;
2012-07-26 10:25:54 +00:00
find . -type f -name *.so -exec rm -rf {} \;
find . -type f -name *.dll -exec rm -rf {} \;
find . -type f -name *.jnilib -exec rm -rf {} \;
2013-05-02 12:02:12 +00:00
2012-09-19 11:20:23 +00:00
popd
2013-05-02 12:02:12 +00:00
2014-03-14 17:26:14 +00:00
tar cJf R4_platform-aggregator-$TAG.tar.xz R4_platform-aggregator-$TAG