diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-14 13:16:58 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-14 13:16:58 +0100 |
commit | ae4c99fb4fe7964b5972c145d066b3b4842ba1a1 (patch) | |
tree | 5ea6522e06f7328cb2ab59348bf720cd98effb11 /bootstrap.sh | |
parent | 321f25af1ba33d8409cd294b4f50d0d3e79cf3bd (diff) |
Use set -e in bootstrap script instead of && between commands.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 76503bb..9e8cdca 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,11 +1,13 @@ #!/bin/sh +set -e + : ${CXX:=g++} : ${BUILDDIR:=build} CXX=$(which $CXX) echo "Bootstrapping..." -$CXX -std=c++20 -Wall -O3 -Isrc -pthread src/bootstrap.cc ctor.cc test/ctor.cc -o ctor && \ -./ctor && \ -$CXX -std=c++20 -Wall -O3 -Isrc -pthread ctor.cc test/ctor.cc -L$BUILDDIR -lctor -o ctor && \ -./ctor configure --ctor-includedir=src --ctor-libdir=$BUILDDIR --build-dir=$BUILDDIR&& \ +$CXX -std=c++20 -Wall -O3 -Isrc -pthread src/bootstrap.cc ctor.cc test/ctor.cc -o ctor +./ctor +$CXX -std=c++20 -Wall -O3 -Isrc -pthread ctor.cc test/ctor.cc -L$BUILDDIR -lctor -o ctor +./ctor configure --ctor-includedir=src --ctor-libdir=$BUILDDIR --build-dir=$BUILDDIR echo "Done. Now run ./ctor to (re)build." |