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
|
2017-05-18 08:27:21 +00:00
|
|
|
TAG=I20170515-0910
|
2012-09-19 11:20:23 +00:00
|
|
|
|
2013-05-02 12:02:12 +00:00
|
|
|
rm -rf R4_platform-aggregator-$TAG
|
2013-07-08 15:02:05 +00:00
|
|
|
rm -rf R4_platform-aggregator-$TAG.tar.xz
|
2012-07-26 10:25:54 +00:00
|
|
|
|
2017-04-03 13:19:04 +00:00
|
|
|
git clone --depth 1 --branch $TAG $AGGREGATOR_PATH R4_platform-aggregator-$TAG
|
2014-03-14 17:26:14 +00:00
|
|
|
|
2013-05-02 12:02:12 +00:00
|
|
|
pushd R4_platform-aggregator-$TAG
|
|
|
|
|
|
|
|
git submodule init
|
2013-07-08 15:02:05 +00:00
|
|
|
git submodule update
|
2013-05-02 12:02:12 +00:00
|
|
|
|
2017-04-03 13:19:04 +00:00
|
|
|
rm -rf production
|
2013-05-02 12:02:12 +00:00
|
|
|
|
2014-06-03 17:02:32 +00:00
|
|
|
# Comment this line to get a shallow clone.
|
|
|
|
find . -type d -name ".git" | xargs rm -rf
|
2013-05-02 12:02:12 +00:00
|
|
|
|
2015-07-30 10:19:32 +00:00
|
|
|
# Delete pre-built binary artifacts except some test data that cannot be generated
|
2015-12-07 14:00:47 +00:00
|
|
|
find . ! -path "*/JCL/*" ! -name "rtstubs*.jar" \
|
2015-07-30 10:19:32 +00:00
|
|
|
-type f -name *.jar -delete
|
2014-06-03 17:02:32 +00:00
|
|
|
find . -type f -name *.class -delete
|
|
|
|
find . -type f -name *.so -delete
|
|
|
|
find . -type f -name *.dll -delete
|
|
|
|
find . -type f -name *.jnilib -delete
|
2015-01-30 10:05:27 +00:00
|
|
|
# Remove pre-compiled native launchers
|
|
|
|
rm -rf rt.equinox.binaries/org.eclipse.equinox.executable/{bin,contributed}/
|
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
|