From: Oto Šťáva Date: Wed, 7 Aug 2024 13:56:24 +0000 (+0200) Subject: manager/scripts/meson-configure: fix setup for old Meson X-Git-Tag: v6.0.9~36^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c692cef6498a97715fea779c231877c78cbf1a03;p=thirdparty%2Fknot-resolver.git manager/scripts/meson-configure: fix setup for old Meson This fixes first-time setup for Meson pre-1.1.0. --- diff --git a/manager/scripts/meson-configure b/manager/scripts/meson-configure index c99ddea7c..3bebe4d8c 100755 --- a/manager/scripts/meson-configure +++ b/manager/scripts/meson-configure @@ -5,7 +5,11 @@ src_dir="$(dirname "$(realpath "$0")")" source $src_dir/_env.sh pushd .. -meson setup manager/.build_kresd --reconfigure --prefix=$(realpath manager/.install_kresd) "$@" +reconfigure='' +if [ -f manager/.build_kresd/ninja.build ]; then + reconfigure='--reconfigure' +fi +meson setup manager/.build_kresd "$reconfigure" --prefix=$(realpath manager/.install_kresd) "$@" popd build_kresd