scripts/build/cc_core_gcc.sh
changeset 63 89b41dbffe8d
parent 45 42faddd0098a
child 75 56db62f2932a
     1.1 --- a/scripts/build/cc_core_gcc.sh	Sat Apr 21 17:31:51 2007 +0000
     1.2 +++ b/scripts/build/cc_core_gcc.sh	Mon May 07 09:04:02 2007 +0000
     1.3 @@ -2,6 +2,26 @@
     1.4  # Copyright 2007 Yann E. MORIN
     1.5  # Licensed under the GPL v2. See COPYING in the root of this package
     1.6  
     1.7 +# Download core gcc
     1.8 +do_cc_core_get() {
     1.9 +    # Ah! gcc folks are kind of 'different': they store the tarballs in
    1.10 +    # subdirectories of the same name! That's because gcc is such /crap/ that
    1.11 +    # it is such /big/ that it needs being splitted for distribution! Sad. :-(
    1.12 +    # Arrgghh! Some of those versions does not follow this convention:
    1.13 +    # gcc-3.3.3 lives in releases/gcc-3.3.3, while gcc-2.95.* isn't in a
    1.14 +    # subdirectory! You bastard!
    1.15 +    CT_GetFile "${CT_CC_CORE_FILE}"                                    \
    1.16 +               ftp://ftp.gnu.org/gnu/gcc/${CT_CC_CORE_FILE}            \
    1.17 +               ftp://ftp.gnu.org/gnu/gcc/releases/${CT_CC_CORE_FILE}   \
    1.18 +               ftp://ftp.gnu.org/gnu/gcc
    1.19 +}
    1.20 +
    1.21 +# Extract core gcc
    1.22 +do_cc_core_extract() {
    1.23 +    CT_ExtractAndPatch "${CT_CC_CORE_FILE}"
    1.24 +}
    1.25 +
    1.26 +# Build core gcc
    1.27  do_cc_core() {
    1.28      mkdir -p "${CT_BUILD_DIR}/build-cc-core"
    1.29      cd "${CT_BUILD_DIR}/build-cc-core"