Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanh Ha2013-05-03 14:01:42 +0000
committerThanh Ha2013-05-03 14:01:42 +0000
commit51af72bbcfb0a8c3972b892dfe9bedfd249ba0cc (patch)
treec9ad0a74cf15acec00d50dd2f2c117f22c447e7b
parent7df34e63f9ecd46494cb46c1ec2b4beb5fbdab91 (diff)
downloadeclipse.platform.releng.aggregator-51af72bbcfb0a8c3972b892dfe9bedfd249ba0cc.tar.gz
eclipse.platform.releng.aggregator-51af72bbcfb0a8c3972b892dfe9bedfd249ba0cc.tar.xz
eclipse.platform.releng.aggregator-51af72bbcfb0a8c3972b892dfe9bedfd249ba0cc.zip
Add LTS Hudson submodule updater script
-rw-r--r--scripts/lts/update_submodules.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/scripts/lts/update_submodules.sh b/scripts/lts/update_submodules.sh
new file mode 100644
index 000000000..40e7145f0
--- /dev/null
+++ b/scripts/lts/update_submodules.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+#
+# This script is used by the LTS Hudson builder to update the aggregator submodule automatically
+#
+
+AGGR_BRANCH=R4_2_maintenance
+
+cd $WORKSPACE
+
+git clone -b $AGGR_BRANCH --recursive ssh://lts.eclipse.org:29418/platform/eclipse.platform.releng.aggregator ./
+
+while read line
+do
+ repo=$( echo $line | cut -d':' -f1 )
+ branch=$( echo $line | cut -d':' -f2 )
+ #trim
+ branch=`echo $branch`
+ if [ -e $repo ]
+ then
+ pushd $repo
+ git fetch
+ if [[$branch = "R4_2_maintenance"] -o [$branch = "R3_8_maintenance"]]
+ then
+ git checkout origin/$branch
+ else
+ git checkout $branch
+ fi
+ popd
+ fi
+done < streams/repositories.txt
+
+git checkout $AGGR_BRANCH
+git rebase origin/$AGGR_BRANCH
+git commit -a -m "Update submodules" && echo "Submodules updated"
+git push origin $AGGR_BRANCH
+

Back to the top