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>
This commit is contained in:
parent
a0ea7f7a92
commit
ca1806f20e
1 changed files with 2 additions and 8 deletions
10
build
10
build
|
@ -139,20 +139,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}"
|
||||
|
|
Loading…
Reference in a new issue