diff options
-rwxr-xr-x | include/git.sh | 2 | ||||
-rwxr-xr-x | script/trees | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/git.sh b/include/git.sh index e73f1ad7..12aa80d4 100755 --- a/include/git.sh +++ b/include/git.sh @@ -7,8 +7,6 @@ eval `setvars "" rev loc url bkup_url depend tree_depend xtree mdir subhash \ fetch_targets() { - [ ! -d "src/$project/$project" ] && x_ mkdir -p "src/$project" \ - && fetch_project "$project" [ -n "$tree_depend" ] && [ "$tree_depend" != "$tree" ] && \ x_ ./update trees -f "$project" "$tree_depend" e "src/$project/$tree" d || prepare_new_tree; return 0 diff --git a/script/trees b/script/trees index b5cf13f0..0a9cf90d 100755 --- a/script/trees +++ b/script/trees @@ -142,6 +142,9 @@ handle_src_tree() load_project_config() { + [ "$cmd" = "build_targets" ] && [ ! -d "src/$project/$project" ] && \ + x_ mkdir -p "src/$project" && fetch_project "$project" + eval `setvars "" xarch xlang bootstrapargs autoconfargs xtree \ tree_depend makeargs btype mkhelper` [ -f "$1/target.cfg" ] || btype="auto" |