From f46ac08c59bfd8e05f7f8fc6e63d2629ecccac03 Mon Sep 17 00:00:00 2001 From: Stefan Westerfeld Date: Thu, 20 Jun 2024 13:10:12 +0200 Subject: [PATCH] MISC: build.sh: fix exit code Signed-off-by: Stefan Westerfeld --- misc/build.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/misc/build.sh b/misc/build.sh index def12c5d..0f28271e 100755 --- a/misc/build.sh +++ b/misc/build.sh @@ -3,7 +3,7 @@ set -Eeuo pipefail build() { - if [ -f "./configure" ]; then + if [ -f "./Makefile" ]; then make uninstall make distclean fi @@ -36,7 +36,9 @@ export CC=gcc CXX=g++ build "$@" --enable-debug-cxx -[ $# -eq 0 ] && lv2lint http://spectmorph.org/plugins/spectmorph +if [ $# -eq 0 ]; then + lv2lint http://spectmorph.org/plugins/spectmorph +fi make -j `nproc` distcheck @@ -45,4 +47,6 @@ export CC=clang CXX=clang++ build "$@" -[ $# -eq 0 ] && lv2lint http://spectmorph.org/plugins/spectmorph +if [ $# -eq 0 ]; then + lv2lint http://spectmorph.org/plugins/spectmorph +fi