From d6de6e3bc5bc4d5f3c8799df33d876116bddef14 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 14 Apr 2021 16:37:15 -0500 Subject: Use AND lists and remove set -e --- chapter8/ninja.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'chapter8/ninja.sh') diff --git a/chapter8/ninja.sh b/chapter8/ninja.sh index 173a6ba..e778780 100644 --- a/chapter8/ninja.sh +++ b/chapter8/ninja.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e export NINJAJOBS=4 @@ -9,10 +8,10 @@ sed -i '/int Guess/a \ char* jobs = getenv( "NINJAJOBS" );\ if ( jobs != NULL ) j = atoi( jobs );\ if ( j > 0 ) return j;\ -' src/ninja.cc +' src/ninja.cc && -python3 configure.py --bootstrap +python3 configure.py --bootstrap && -install -vm755 ninja /usr/bin/ -install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja +install -vm755 ninja /usr/bin/ && +install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja && install -vDm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja -- cgit v1.2.3-54-g00ecf