diff options
author | Thanh Ha | 2013-05-03 14:01:42 +0000 |
---|---|---|
committer | Thanh Ha | 2013-05-03 14:01:42 +0000 |
commit | 51af72bbcfb0a8c3972b892dfe9bedfd249ba0cc (patch) | |
tree | c9ad0a74cf15acec00d50dd2f2c117f22c447e7b | |
parent | 7df34e63f9ecd46494cb46c1ec2b4beb5fbdab91 (diff) | |
download | eclipse.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.sh | 37 |
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 + |