mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 15:03:44 +02:00
tree.sh: simplify check_autoconf()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-4
@@ -285,8 +285,8 @@ run_make_command()
|
|||||||
{
|
{
|
||||||
[ -n "$mode" ] || x_ $premake
|
[ -n "$mode" ] || x_ $premake
|
||||||
|
|
||||||
$dry check_cmake "$srcdir" && [ -z "$mode" ] && \
|
$dry check_cmake "$srcdir"
|
||||||
$dry check_autoconf "$srcdir"
|
[ -n "$mode" ] || ( $dry check_autoconf "$srcdir" ) || err
|
||||||
$dry check_makefile "$srcdir" || return 1
|
$dry check_makefile "$srcdir" || return 1
|
||||||
|
|
||||||
$dry x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
|
$dry x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
|
||||||
@@ -307,12 +307,10 @@ check_cmake()
|
|||||||
|
|
||||||
check_autoconf()
|
check_autoconf()
|
||||||
{
|
{
|
||||||
(
|
|
||||||
x_ cd "$1"
|
x_ cd "$1"
|
||||||
[ -f "bootstrap" ] && x_ ./bootstrap $bootstrapargs
|
[ -f "bootstrap" ] && x_ ./bootstrap $bootstrapargs
|
||||||
[ -f "autogen.sh" ] && x_ ./autogen.sh $autogenargs
|
[ -f "autogen.sh" ] && x_ ./autogen.sh $autogenargs
|
||||||
[ -f "configure" ] && x_ ./configure $autoconfargs; :
|
[ -f "configure" ] && x_ ./configure $autoconfargs; :
|
||||||
) || err "can't bootstrap project: $1"; :
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_makefile()
|
check_makefile()
|
||||||
|
|||||||
Reference in New Issue
Block a user