summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-09 15:47:51 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-09 15:52:35 +0100
commit1799a33663fdfc28577dca3afccad26eefd829e3 (patch)
tree3046f8b1d3803ec5124f357febc3ced74f87460a /build
parent78426a97e57d3cfe77d8189a10a3c10125284426 (diff)
build: also make a lock file during release build
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'build')
-rwxr-xr-xbuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/build b/build
index bfd865c2..bec2c67b 100755
--- a/build
+++ b/build
@@ -78,6 +78,7 @@ mkrelease()
[ -e "$vdir" ] && $err "already exists: \"$vdir\""
mkdir -p "$vdir" || $err "mkvdir: !mkdir -p \"$vdir\""
git clone . "$srcdir" || $err "mkdir: !gitclone \"$srcdir\""
+ touch "$srcdir/lock" || $err "can't make lock file in $srcdir/"
build_release
@@ -95,6 +96,7 @@ build_release()
git log --graph --pretty=format:'%Cred%h%Creset %s %Creset' \
--abbrev-commit > "$srcdir/CHANGELOG" || $err "!gitlog $srcdir"
+ rm -f "$srcdir/lock" || $err "can't remove lock file in $srcdir"
(
cd "${srcdir%/*}" || $err "$_xm: mktarball \"$srcdir\""
@@ -102,6 +104,8 @@ build_release()
) || $err "can't create src tarball"
[ "$mode" = "src" ] && return 0
+ touch "$srcdir/lock" || $err "can't make lock file in $srcdir/"
+
(
cd "$srcdir" || $err "$_xm: 2 !cd \"$srcdir\""
./build roms all || $err "$_xm: roms-all"