mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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>
27 lines
520 B
Bash
Executable File
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
|