Revert "get.sh: put tmpclone dirs in xbtmp"

This reverts commit 01a779d4eb.

This commit broke ./mk -d coreboot for vendor files in lbmk.
This commit is contained in:
Leah Rowe
2025-09-04 15:27:20 +01:00
parent aa38608bff
commit ddbefea475
2 changed files with 7 additions and 8 deletions
+5 -8
View File
@@ -3,7 +3,10 @@
# Copyright (c) 2022 Caleb La Grange <thonkpeasant@protonmail.com>
eval "`setvars "" loc url bkup_url subcurl subhash subgit subgit_bkup \
depend subcurl_bkup tmpgit`"
depend subcurl_bkup`"
tmpgit="$xbtmp/gitclone"
tmpgitcache="$XBMK_CACHE/tmpgit"
fetch_targets()
{
@@ -28,7 +31,7 @@ clone_project()
loc="$XBMK_CACHE/clone/$project" && singletree "$project" && \
loc="src/$project"
e "$loc" d missing && git_prep \
e "$loc" d missing && remkdir "${tmpgit%/*}" && git_prep \
"$url" "$bkup_url" "$xbmkpwd/config/$project/patches" "$loc"; :
}
@@ -39,10 +42,6 @@ git_prep()
_patchdir="$3"
_loc="$4" # $1 and $2 are gitrepo and gitrepo_backup
tmpgit="`mktemp -d || err "can't make tmpgit"`" || err
x_ rm -Rf "$tmpgit"
x_ mkdir -p "${tmpgit%/*}"
chkvars rev
xbget git "$1" "$2" "$tmpgit" "$rev" "$_patchdir"
if singletree "$project" || [ $# -gt 4 ]; then
@@ -135,9 +134,7 @@ try_copy()
try_git()
{
gitdest="`findpath "$1"`" || err "Can't get readpath for '$1'"
tmpgitcache="`mktemp -d || err "can't make tmpgitcache"`" || err
x_ rm -Rf "$tmpgitcache"
x_ mkdir -p "${tmpgitcache%/*}"
[ -d "$gitdest" ] || ( x_ git clone "$2" "$tmpgitcache" ) || return 1
[ -d "$gitdest" ] || x_ mkdir -p "${gitdest%/*}"
+2
View File
@@ -65,6 +65,8 @@ trees()
targets="$*"
cmd="build_targets $targets"
singletree "$project" && cmd="build_project"
remkdir "${tmpgit%/*}"
}
build_project()