All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [GDBSERVER] make gdbbuild exit on error
@ 2006-09-04  4:07 Horms
  2006-09-04 19:53 ` Tony Breeds
  0 siblings, 1 reply; 3+ messages in thread
From: Horms @ 2006-09-04  4:07 UTC (permalink / raw)
  To: xen-devel

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 <horms@verge.net.au>

 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 -x
+
 [ "$GDB_MIRROR" ] || GDB_MIRROR="ftp://ftp.gnu.org/gnu/gdb/"
 
 rm -rf gdb-6.2.1 gdb-6.2.1-linux-i386-xen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [GDBSERVER] make gdbbuild exit on error
  2006-09-04  4:07 [PATCH] [GDBSERVER] make gdbbuild exit on error Horms
@ 2006-09-04 19:53 ` Tony Breeds
  2006-09-06  0:30   ` Horms
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Breeds @ 2006-09-04 19:53 UTC (permalink / raw)
  To: Horms; +Cc: xen-devel

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.

<snip>
 
> +set -x
> +

Shouldn't that be '-e' ? to exit

Yours Tony

   linux.conf.au       http://linux.conf.au/ || http://lca2007.linux.org.au/
   Jan 15-20 2007      The Australian Linux Technical Conference!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [GDBSERVER] make gdbbuild exit on error
  2006-09-04 19:53 ` Tony Breeds
@ 2006-09-06  0:30   ` Horms
  0 siblings, 0 replies; 3+ messages in thread
From: Horms @ 2006-09-06  0:30 UTC (permalink / raw)
  To: xen-devel

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.
> 
> <snip>
>  
> > +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 <horms@verge.net.au>

 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-06  0:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-04  4:07 [PATCH] [GDBSERVER] make gdbbuild exit on error Horms
2006-09-04 19:53 ` Tony Breeds
2006-09-06  0:30   ` Horms

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.