From: Horms Subject: Re: [PATCH] [GDBSERVER] make gdbbuild exit on error Date: Wed, 6 Sep 2006 09:30:32 +0900 Message-ID: <20060906003030.GQ4910@verge.net.au> References: <20060904040738.GA16374@verge.net.au> <20060904195344.GB27551@bakeyournoodle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20060904195344.GB27551@bakeyournoodle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, Sep 05, 2006 at 05:53:44AM +1000, Tony Breeds wrote: > On Mon, Sep 04, 2006 at 01:07:40PM +0900, Horms wrote: > > 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. > > > > > +set -x > > + > > Shouldn't that be '-e' ? to exit Yes, sorry for the noise. -- Horms H: http://www.vergenet.net/~horms/ W: http://www.valinux.co.jp/en/ [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 tools/debugger/gdb/gdbbuild | 2 ++ 1 file changed, 2 insertions(+) --- 0001/tools/debugger/gdb/gdbbuild +++ work/tools/debugger/gdb/gdbbuild 2006-09-04 13:01:57.000000000 +0900 @@ -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