galileo: build_newlib.sh: Exit on configuration error
This patch adds a check for the result of the newlib configure command and immediately exits the build_newlib.sh script if configure fails.
This commit is contained in:
parent
99de563e8d
commit
66629ae58f
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
JOBS=5
|
JOBS=5
|
||||||
TARGET=i586-elf
|
TARGET=i586-elf
|
||||||
VERSION=2.2.0-1
|
VERSION=2.2.0-1
|
||||||
|
@ -99,7 +101,9 @@ cleanup() {
|
||||||
|
|
||||||
|
|
||||||
# By default we always call prepare, build and setup.
|
# By default we always call prepare, build and setup.
|
||||||
prepare && build && setup
|
prepare
|
||||||
|
build
|
||||||
|
setup
|
||||||
|
|
||||||
# But we only cleanup if -c is used.
|
# But we only cleanup if -c is used.
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
Loading…
Add table
Reference in a new issue