blob: 6ee6595fcb0536045f45440127dbed430d2f03c4 [file] [log] [blame]
# The purpose of this script is to checkout the latest branches for all
# submodules within the current aggregator branch. It uses the
# repositories.txt file to determine the submodule to branch mappings.
# Usage: ./scripts/
# This script should be called from the root of the aggregator repo.
# There are two list of repositories, the "normal" and the "patches" the
# In the patches one, only those components that had requested to be included
# in the patch will be used, saving time in the preparation of the environment
IFS=$'\n' read -d '' -r -a repos < scripts/repositories.txt
for i in "${repos[@]}"
repository=$(echo $i | cut -f1 -d: | tr -d ' ')
branch=$(echo $i | cut -f2 -d: | tr -d ' ')
pushd $repository
git checkout $branch
git pull