From 1a74172a17656414357399f588192105c146a67b Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 25 Sep 2025 02:18:40 +0100 Subject: release.sh: use cache src on release builds use what's in cache/clone/ from the main directory this speeds up the build process Signed-off-by: Leah Rowe --- include/release.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/release.sh b/include/release.sh index ebe91556..b4a9ea98 100644 --- a/include/release.sh +++ b/include/release.sh @@ -59,6 +59,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 @@ -94,8 +97,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/cache" "$rsrc/xbmkwd" + x_ rm -f "$rsrc/lock" "$rsrc/cache" + x_ rm -Rf "$rsrc/xbmkwd" ( x_ cd "${rsrc%/*}" -- cgit v1.2.1