init.sh: explicitly create cache/

otherwise, an error occurs when doing ./mk release

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-10-05 01:04:25 +01:00
parent 1e488aae78
commit 23f98c2958
2 changed files with 3 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ xbmk_init()
fi
export PWD="$xbmkpwd"
x_ xbmkdir "$basetmp"
x_ xbmkdir "$basetmp" "cache"
for init_cmd in get_version set_env set_threads git_init child_exec; do
if ! xbmk_$init_cmd "$@"; then

View File

@@ -64,9 +64,6 @@ prep_release()
(
if [ "$1" != "tarball" ]; then
x_ cd "$rsrc"
if [ ! -e "cache" ]; then
x_ ln -s "$XBMK_CACHE" "cache"
fi
fi
prep_release_$1
@@ -104,8 +101,8 @@ prep_release_tarball()
--abbrev-commit > "$rsrc/CHANGELOG" || \
err "can't create '$rsrc/CHANGELOG'" "prep_release_tarball" "$@"
x_ rm -f "$rsrc/lock" "$rsrc/cache"
x_ rm -Rf "$rsrc/xbmkwd" "$rsrc/util/sbase"
x_ rm -f "$rsrc/lock"
x_ rm -Rf "$rsrc/xbmkwd" "$rsrc/util/sbase" "$rsrc/cache"
x_ mv "$rsrc/util/sbase2" "$rsrc/util/sbase"
(