Files
xen/tools/debugger/gdb/gdbbuild
T
kaf24@firebug.cl.cam.ac.uk 37a7b1e045 [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>
2006-09-13 15:15:27 +01:00

27 lines
520 B
Bash
Executable File

#!/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
[ -a gdb-6.2.1.tar.bz2 ] || wget -c "$GDB_MIRROR/gdb-6.2.1.tar.bz2"
tar xjf gdb-6.2.1.tar.bz2
cd gdb-6.2.1-xen-sparse
bash ./mkbuildtree ../gdb-6.2.1
cd ..
mkdir gdb-6.2.1-linux-i386-xen
cd gdb-6.2.1-linux-i386-xen
../gdb-6.2.1/configure
# Use $MAKE if set, else use gmake if present, otherwise use make
if [ "$MAKE" ]; then
$MAKE
elif which gmake ; then
gmake -j4
else
make -j4
fi