From f98fd90da38fef1f63324fe19f57c8e5abf87968 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 9 Sep 2022 18:17:45 +0200 Subject: Use set -e in bootstrap script instead of && between commands. --- bootstrap.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bootstrap.sh') diff --git a/bootstrap.sh b/bootstrap.sh index a5c11ac..3a9c454 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,7 +1,8 @@ #!/bin/sh +set -e echo "Bootstrapping..." -g++ -std=c++20 -Wall -O3 -Isrc -pthread src/bootstrap.cc ctor.cc test/ctor.cc -o ctor && \ -./ctor && \ -g++ -std=c++20 -Wall -O3 -Isrc -pthread ctor.cc test/ctor.cc -Lbuild -lctor -o ctor && \ -./ctor configure --ctor-includedir=src --ctor-libdir=build && \ +g++ -std=c++20 -Wall -O3 -Isrc -pthread src/bootstrap.cc ctor.cc test/ctor.cc -o ctor +./ctor +g++ -std=c++20 -Wall -O3 -Isrc -pthread ctor.cc test/ctor.cc -Lbuild -lctor -o ctor +./ctor configure --ctor-includedir=src --ctor-libdir=build echo "Done. Now run ./ctor to (re)build." -- cgit v1.2.3