Add a shortcut to invoke git on all the sub-repos (#29)

This commit is contained in:
Domenico Andreoli
2017-06-13 19:34:00 +02:00
committed by Florent Revest
parent 0f3401335e
commit fff104e45e

View File

@@ -39,6 +39,16 @@ if [[ "$1" == "update" ]]; then
pull_dir $d
done
pull_dir src/oe-core/bitbake
elif [[ "$1" == "git-"* ]]; then
base=$(dirname $0)
gitcmd=${1:4} # drop git-
shift
for d in $base $base/src/* $base/src/oe-core/bitbake; do
if [ $(git -C $d $gitcmd "$@" | wc -c) -ne 0 ]; then
echo -e "\e[35mgit -C $d $gitcmd $@ \e[39m"
git -C $d $gitcmd "$@"
fi
done
# Prepare bitbake
else
ROOTDIR=`pwd`