build: also make a lock file during release build
Signed-off-by: Leah Rowe <leah@libreboot.org>audit2-merge1
parent
686bad6d4e
commit
fd9664c567
4
build
4
build
|
@ -73,6 +73,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
|
||||
|
||||
|
@ -90,6 +91,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\""
|
||||
|
@ -97,6 +99,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"
|
||||
|
|
Loading…
Reference in New Issue