ia64/xen-unstable

changeset 9123:a0c07e32000a

Minor enhancements to gdbbuild, the build script for gdbserver-xen.
1. Use $MAKE if set
2. Make mirror configurable from environment

From: Horms <horms@verge.net.au>

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Mar 03 11:17:09 2006 +0100 (2006-03-03)
parents 658528fe2b9a
children 8aa45d7713e3
files tools/debugger/gdb/gdbbuild
line diff
     1.1 --- a/tools/debugger/gdb/gdbbuild	Fri Mar 03 10:58:42 2006 +0100
     1.2 +++ b/tools/debugger/gdb/gdbbuild	Fri Mar 03 11:17:09 2006 +0100
     1.3 @@ -1,7 +1,9 @@
     1.4  #!/bin/sh
     1.5  
     1.6 +[ "$GDB_MIRROR" ] || GDB_MIRROR="ftp://ftp.gnu.org/gnu/gdb/"
     1.7 +
     1.8  rm -rf gdb-6.2.1 gdb-6.2.1-linux-i386-xen
     1.9 -[ -a gdb-6.2.1.tar.bz2 ] || wget -c ftp://ftp.gnu.org/gnu/gdb/gdb-6.2.1.tar.bz2
    1.10 +[ -a gdb-6.2.1.tar.bz2 ] || wget -c "$GDB_MIRROR/gdb-6.2.1.tar.bz2"
    1.11  tar xjf gdb-6.2.1.tar.bz2
    1.12  
    1.13  cd gdb-6.2.1-xen-sparse
    1.14 @@ -12,8 +14,10 @@ mkdir gdb-6.2.1-linux-i386-xen
    1.15  cd gdb-6.2.1-linux-i386-xen
    1.16  ../gdb-6.2.1/configure
    1.17  
    1.18 -# some people don't have gmake
    1.19 -if which gmake ; then
    1.20 +# Use $MAKE if set, else use gmake if present, otherwise use make
    1.21 +if [ "$MAKE" ]; then
    1.22 +    $MAKE
    1.23 +elif which gmake ; then
    1.24      gmake -j4
    1.25  else
    1.26      make -j4