summaryrefslogtreecommitdiff
path: root/tools/rockboxdev.sh
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-30 15:46:13 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-30 15:46:13 +0000
commit49d378b0f6da7379f05cc0dbec77b452da52f051 (patch)
tree4a7ed4932e3f929ce5d3baa7a456fa6f0aa9dc09 /tools/rockboxdev.sh
parent06efd071a9be5158f527828975fbd78eac5e642f (diff)
downloadrockbox-49d378b0f6da7379f05cc0dbec77b452da52f051.tar.gz
rockbox-49d378b0f6da7379f05cc0dbec77b452da52f051.zip
Commit FS#9158 thanks to Tomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18152 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/rockboxdev.sh')
-rwxr-xr-xtools/rockboxdev.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 9bbe56c25b..40c285942c 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -23,6 +23,16 @@ else
23 make="make" 23 make="make"
24fi 24fi
25 25
26# Use an alternative mirror in case you encounter a slow internet connection.
27# List of other GNU mirrors available in http://www.gnu.org/prep/ftp.html
28#
29# Usage example:
30# # GNU_MIRROR=http://mirrors.kernel.org/gnu ./rockboxdev.sh
31#
32if [ -z $GNU_MIRROR ] ; then
33 GNU_MIRROR=ftp://ftp.gnu.org/pub/gnu
34fi
35
26# If detection fails, override the value of make manually: 36# If detection fails, override the value of make manually:
27# make="make" 37# make="make"
28 38
@@ -206,13 +216,13 @@ cat $summary
206if test -f "$dlwhere/binutils-$binutils.tar.bz2"; then 216if test -f "$dlwhere/binutils-$binutils.tar.bz2"; then
207 echo "binutils $binutils already downloaded" 217 echo "binutils $binutils already downloaded"
208else 218else
209 getfile binutils-$binutils.tar.bz2 ftp://ftp.gnu.org/pub/gnu/binutils 219 getfile binutils-$binutils.tar.bz2 $GNU_MIRROR/binutils
210fi 220fi
211 221
212if test -f "$dlwhere/gcc-core-$gccver.tar.bz2"; then 222if test -f "$dlwhere/gcc-core-$gccver.tar.bz2"; then
213 echo "gcc $gccver already downloaded" 223 echo "gcc $gccver already downloaded"
214else 224else
215 getfile gcc-core-$gccver.tar.bz2 ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver 225 getfile gcc-core-$gccver.tar.bz2 $GNU_MIRROR/gcc/gcc-$gccver
216fi 226fi
217 227
218if test -n "$gccpatch"; then 228if test -n "$gccpatch"; then