scripts/functions: Fix CT_ExtractGit function.
Change CT_ExtractGit so that it clones the repository, instead of just
symlinking it. After cloning, any given ref is checked out, or if no
ref is given, the HEAD of the repository is checked out.
This makes CT_Extract behave similar for git repositories as it does
for tarballs, so that it for example can be used for passing glibc-ports
as a git repository.
Signed-off-by: "Esben Haabendal" <esben.haabendal@prevas.dk>
[yann.morin.1998@anciens.enib.fr: fix incomplete var rename]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
1 Message-ID: <4269173F.7020705@zee2.com>
2 Date: Fri, 22 Apr 2005 16:24:47 +0100
3 From: Steve Papacharalambous <stevep@zee2.com>
4 To: "Robert P. J. Day" <rpjday@mindspring.com>
5 CC: crossgcc list <crossgcc@sources.redhat.com>
6 Subject: Re: cygwin source directory has moved
7 In-Reply-To: <Pine.LNX.4.61.0504181746050.11794@localhost.localdomain>
11 I've attached two patches:
13 1/ For crosstool-0.31 which changes the CYGWIN_URL to one which has the
14 cygwin source archives. The version of cygwin that is used to build the
15 cross toolchain has been changed to cygwin-1.5.15-1-src.tar.bz2 since
16 most of the mirror sites don't seem to have the original archive used.
17 [created gcc-3.3.2-cygwin-1.5.15-1.dat - dank]
20 2/ The later cygwin source archive fails to cross build with the error:
21 /opt/crosstool/i686-pc-cygwin/gcc-3.3.2-cygwin-1.5.15-1/lib/gcc-lib/i686-pc-cygwin/bin/ld:
24 unless the second patch is applied,
27 diff -uNr cygwin-1.5.15-1.orig/winsup/mingw/Makefile.in cygwin-1.5.15-1/winsup/mingw/Makefile.in
28 --- cygwin-1.5.15-1.orig/winsup/mingw/Makefile.in 2005-02-28 22:51:02.000000000 +0000
29 +++ cygwin-1.5.15-1/winsup/mingw/Makefile.in 2005-04-22 15:29:18.000000000 +0100
31 mkinstalldirs = $(SHELL) @MKINSTALLDIRS@
34 -override CC := ${filter-out -L% -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\) *[^ ]*\( \|$$\)% %g'}}
35 +override CC := ${filter-out -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\) *[^ ]*\( \|$$\)% %g'}}
36 # FIXME: Which is it, CC or CC_FOR_TARGET?