From 76a2e464fb53cbb4f1745a4281b185e550b4589a Mon Sep 17 00:00:00 2001 From: Charlie Shepherd Date: Fri, 25 Jan 2008 14:44:01 +0000 Subject: Die on compilation or stripping failure --- scripts/make.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/make.sh b/scripts/make.sh index c5989334..ea67e121 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -93,5 +93,6 @@ TOYFILES=$(cat .config | sed -nre 's/^CONFIG_(.*)=y/\1/;t skip;b;:skip;s/_.*//;p echo "Compile toybox..." -$DEBUG $CC $CFLAGS -I . -o toybox_unstripped $OPTIMIZE main.c lib/*.c $TOYFILES -$DEBUG $STRIP toybox_unstripped -o toybox +$DEBUG $CC $CFLAGS -I . -o toybox_unstripped $OPTIMIZE \ + main.c lib/*.c $TOYFILES || exit 1 +$DEBUG $STRIP toybox_unstripped -o toybox || exit 1 -- cgit v1.2.3