From: kaf24@firebug.cl.cam.ac.uk Date: Wed, 13 Sep 2006 14:15:27 +0000 (+0100) Subject: [GDBSERVER] make gdbbuild exit on error X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15658^2~53^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=37a7b1e0457a0ceec2a5bad4473000f81ef530dd;p=xen.git [GDBSERVER] make gdbbuild exit on error If an error occurs, such as wget failing because the site (or proxy) is unavailable, the script will now terminate, rather than trying to soldier on without any real hope of success. mkbuildtree should really get the same treatment, but that can wait for another day. Signed-Off-By: Simon Horman --- diff --git a/tools/debugger/gdb/gdbbuild b/tools/debugger/gdb/gdbbuild index 419adab61d..ba7fd7c68a 100755 --- a/tools/debugger/gdb/gdbbuild +++ b/tools/debugger/gdb/gdbbuild @@ -1,5 +1,7 @@ #!/bin/sh +set -e + [ "$GDB_MIRROR" ] || GDB_MIRROR="ftp://ftp.gnu.org/gnu/gdb/" rm -rf gdb-6.2.1 gdb-6.2.1-linux-i386-xen