summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-12 21:11:34 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-12 21:11:34 +0100
commit6bf24221e60cfcc21bef445274973570ace436c5 (patch)
treec976fe809ea029622f3bc957f978744d87d7e149
parent66f7ecdb2d7ef03c56bf50171911a66c92b8238a (diff)
release.sh: simplify release()
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/release.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/release.sh b/include/release.sh
index 9046acbf..fbcc5621 100644
--- a/include/release.sh
+++ b/include/release.sh
@@ -28,9 +28,7 @@ release()
remkdir "$vdir"
x_ git clone . "$relsrcdir"
- prep_release src
- prep_release_tarball
- [ "$relmode" = "src" ] || prep_release bin
+ fx_ prep_release printf "src\ntarball\nbin\n"
x_ rm -Rf "$relsrcdir"
x_ mkdir -p "$reldir"
@@ -44,7 +42,7 @@ prep_release()
{
x_ touch "$relsrcdir/lock"
(
- x_ cd "$relsrcdir"
+ [ "$1" = "tarball" ] || x_ cd "$relsrcdir"
prep_release_$1
) || err "can't prep release $1"
}
@@ -71,6 +69,7 @@ prep_release_tarball()
prep_release_bin()
{
+ [ "$relmode" = "src" ] && return 0
x_ ./mk -d coreboot
fx_ "x_ ./mk -b" printf \
"coreboot\npico-serprog\nstm32-vserprog\npcsx-redux\n"