Subject: [PATCH] to accommodate recent gcc and binutils snapshots
From: "Robert P. J. Day" <[email-masked]>
To: crossgcc list <[email-masked]>
Date: Mon, 2 May 2005 14:18:04 -0400 (EDT)

feel free to hack to make more aesthetically palatable:

--- getandpatch.sh.orig	2005-05-02 14:13:18.000000000 -0400
+++ getandpatch.sh	2005-05-02 14:05:02.000000000 -0400
@@ -199,9 +199,12 @@

 if test x"$BINUTILS_URL" = x; then
    case $BINUTILS_DIR in
-      binutils-2.*.9*.0*) BINUTILS_URL=http://www.kernel.org/pub/linux/devel/binutils ;;   # H.J.Lu's branch
-      binutils-2.*.9*)    BINUTILS_URL=ftp://gcc.gnu.org/pub/binutils/snapshots ;;
-      *)                  BINUTILS_URL=ftp://gcc.gnu.org/pub/binutils/releases ;;
+      binutils-2.*.9*.0*)
+		BINUTILS_URL=http://www.kernel.org/pub/linux/devel/binutils ;;   # H.J.Lu's branch
+      binutils-2.*.9*|binutils-05*)
+		BINUTILS_URL=ftp://gcc.gnu.org/pub/binutils/snapshots ;;
+      *)
+		BINUTILS_URL=ftp://gcc.gnu.org/pub/binutils/releases ;;
    esac
 fi
 getUnpackAndPatch $BINUTILS_URL/$BINUTILS_DIR.tar.bz2 $BINUTILS_URL/$BINUTILS_DIR.tar.gz
@@ -216,7 +219,7 @@
    gcc-4.0.[012345]-200*)
       dir=`echo $GCC_DIR | sed s/gcc-/prerelease-/`
       getUnpackAndPatch ftp://gcc.gnu.org/pub/gcc/$dir/$GCC_DIR.tar.gz ;;
-   gcc-3.[345]-200*|gcc-4.0-200*)
+   gcc-3.[345]-200*|gcc-4.0-200*|gcc-4.1-2005*)
       dir=`echo $GCC_DIR | sed 's/gcc-//'`
       getUnpackAndPatch ftp://gcc.gnu.org/pub/gcc/snapshots/$dir/$GCC_DIR.tar.bz2 ;;
    *)

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to [email-masked]