[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Minor enhancements to gdbbuild, the build script for gdbserver-xen.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID a0c07e32000a7bfe3a1dbb71b0adad3451f285e2 # Parent 658528fe2b9ad14a06441bcd0f1f1284d57efac6 Minor enhancements to gdbbuild, the build script for gdbserver-xen. 1. Use $MAKE if set 2. Make mirror configurable from environment From: Horms <horms@xxxxxxxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r 658528fe2b9a -r a0c07e32000a tools/debugger/gdb/gdbbuild --- a/tools/debugger/gdb/gdbbuild Fri Mar 3 09:58:42 2006 +++ b/tools/debugger/gdb/gdbbuild Fri Mar 3 10:17:09 2006 @@ -1,7 +1,9 @@ #!/bin/sh +[ "$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 ftp://ftp.gnu.org/gnu/gdb/gdb-6.2.1.tar.bz2 +[ -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 @@ -12,8 +14,10 @@ cd gdb-6.2.1-linux-i386-xen ../gdb-6.2.1/configure -# some people don't have gmake -if which gmake ; then +# 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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |