tree.sh: simplify check_autoconf()

Signed-off-by: Leah Rowe <leah@libreboot.org>
25.06_branch^2
Leah Rowe 2025-05-27 13:49:13 +01:00
parent 0af33b50ae
commit 7db36d9038
1 changed files with 2 additions and 4 deletions

View File

@ -285,8 +285,8 @@ run_make_command()
{
[ -n "$mode" ] || x_ $premake
$dry check_cmake "$srcdir" && [ -z "$mode" ] && \
$dry check_autoconf "$srcdir"
$dry check_cmake "$srcdir"
[ -n "$mode" ] || ( $dry check_autoconf "$srcdir" ) || err
$dry check_makefile "$srcdir" || return 1
$dry x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
@ -307,12 +307,10 @@ check_cmake()
check_autoconf()
{
(
x_ cd "$1"
[ -f "bootstrap" ] && x_ ./bootstrap $bootstrapargs
[ -f "autogen.sh" ] && x_ ./autogen.sh $autogenargs
[ -f "configure" ] && x_ ./configure $autoconfargs; :
) || err "can't bootstrap project: $1"; :
}
check_makefile()