mirror of
https://github.com/AsteroidOS/asteroid.git
synced 2026-06-11 17:16:49 -04:00
Add a shortcut to invoke git on all the sub-repos (#29)
This commit is contained in:
committed by
Florent Revest
parent
0f3401335e
commit
fff104e45e
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user