Skip to content

Commit

Permalink
MISC: build.sh: fix exit code
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Westerfeld <[email protected]>
  • Loading branch information
swesterfeld committed Jun 20, 2024
1 parent d051824 commit f46ac08
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions misc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -Eeuo pipefail

build()
{
if [ -f "./configure" ]; then
if [ -f "./Makefile" ]; then
make uninstall
make distclean
fi
Expand Down Expand Up @@ -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

Expand All @@ -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

0 comments on commit f46ac08

Please sign in to comment.