summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-15 00:42:27 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-15 00:42:44 +0100
commit267c13cca73f23edb32a1fa7bff153d39aed9f45 (patch)
tree0b46ff2ef94c03cddf82275b27701cb92664e1f6 /build
parent08c9f94a1abbff54d601f31519b70cdda7074ec4 (diff)
cleanup: remove mkvdir
this function is not needed, because it's only called once and it's very small. furthermore: insert_version_files does ntot need to be called here, because they same files are generated immediately afterward when running that version of lbmk. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'build')
-rwxr-xr-xbuild10
1 files changed, 2 insertions, 8 deletions
diff --git a/build b/build
index 41154704..01166982 100755
--- a/build
+++ b/build
@@ -146,20 +146,14 @@ mkrelease()
srcdir="${vdir}/${src_dirname}"
[ -e "${vdir}" ] && $err "already exists: \"${vdir}\""
+ mkdir -p "${vdir}" || $err "mkvdir: !mkdir -p \"${vdir}\""
+ git clone . "${srcdir}" || $err "mkdir: !gitclone \"${srcdir}\""
- mkvdir
build_release
printf "\n\nDONE! Check release files under %s\n" "${vdir}"
}
-mkvdir()
-{
- mkdir -p "${vdir}" || $err "mkvdir: !mkdir -p \"${vdir}\""
- git clone . "${srcdir}" || $err "mkdir: !gitclone \"${srcdir}\""
- insert_version_files "$srcdir" || $err "mkvdir $srcdir: versionfile"
-}
-
build_release()
{
_xm="build_release ${vdir}"