Revert "init.sh: explicitly create cache/"

This reverts commit 23f98c2958.
This commit is contained in:
Leah Rowe
2025-10-05 01:21:26 +01:00
parent 23f98c2958
commit ee2bca65f6
2 changed files with 6 additions and 3 deletions

View File

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

View File

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