release.sh: preserve clean sbase before building

this way, the clean version can be placed inside the
release tarball.

there is a make clean option in sbase, but we should
not really on this.

the design of xbmk is that a clean src tarball is
created. there must not be build artifications in it.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-10-04 10:09:24 +01:00
parent 8969cc734f
commit 8334c93dac

View File

@@ -76,6 +76,8 @@ prep_release()
prep_release_src()
{
x_ cp -R "util/sbase" "util/sbase2"
x_ ./mk -f
fx_ "x_ rm -Rf" x_ find . -name ".git"
@@ -103,7 +105,8 @@ prep_release_tarball()
err "can't create '$rsrc/CHANGELOG'" "prep_release_tarball" "$@"
x_ rm -f "$rsrc/lock" "$rsrc/cache"
x_ rm -Rf "$rsrc/xbmkwd"
x_ rm -Rf "$rsrc/xbmkwd" "$rsrc/util/sbase"
x_ mv "$rsrc/util/sbase2" "$rsrc/util/sbase"
(
x_ cd "${rsrc%/*}"