Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kraj/update layers #32

Merged
merged 3 commits into from
Oct 10, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,17 @@ fi # if -e ${OE_ENV_FILE}
# UPDATE_ALL() - Make sure everything is up to date
###############################################################################
yoe_update_all() {
git submodule update
CWD=`pwd`
cd ${OE_BASE}
git pull && git submodule sync && git submodule update
cd $CWD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think of the following pattern:

cd ${OE_BASE}
do something
cd -

This is a patten I use, but may not be reliable if the "do something" has a cd in it.

}

yoe_update_all_submodules_to_master() {
SAVEDPWD=$PWD
cd $OE_BASE
git submodule foreach "git checkout master && git pull"
cd $SAVEDPWD
}

###############################################################################
Expand All @@ -234,9 +240,11 @@ yoe_clean() {
# machine is first parameter
###############################################################################
yoe_setup() {
SAVEDPWD=$PWD
cd $OE_BASE
git submodule init
git submodule update

cd $SAVEDPWD
}

###############################################################################
Expand Down