Get rid of all stuff related to building a /delivery' traball:
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 03 21:11:41 2009 +0000 (2009-01-03)
changeset 1112c72aecd1a9ef
parent 1111 6a077c345cfe
child 1113 0abc2de191b0
Get rid of all stuff related to building a /delivery' traball:
- building a delivery tarball has long been broken (since crostool-Ng is installable)
- get rid of implied do_print_filename, that can be mis-leading now tarballs can not be built

/trunk/scripts/build/kernel/bare-metal.sh | 4 0 4 0 ----
/trunk/scripts/build/kernel/linux.sh | 4 0 4 0 ----
/trunk/scripts/build/tools/000-template.sh | 11 0 11 0 -----------
/trunk/scripts/build/tools/100-libelf.sh | 4 0 4 0 ----
/trunk/scripts/build/tools/200-sstrip.sh | 11 1 10 0 +----------
/trunk/scripts/build/binutils.sh | 4 0 4 0 ----
/trunk/scripts/build/cc/gcc.sh | 5 0 5 0 -----
/trunk/scripts/build/debug/000-template.sh | 11 0 11 0 -----------
/trunk/scripts/build/debug/100-dmalloc.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/400-ltrace.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/300-gdb.sh | 7 0 7 0 -------
/trunk/scripts/build/debug/500-strace.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/200-duma.sh | 4 0 4 0 ----
/trunk/scripts/build/libc/none.sh | 5 0 5 0 -----
/trunk/scripts/build/libc/glibc.sh | 10 0 10 0 ----------
/trunk/scripts/build/libc/uClibc.sh | 6 0 6 0 ------
/trunk/scripts/build/libc/eglibc.sh | 10 0 10 0 ----------
/trunk/scripts/build/gmp.sh | 6 0 6 0 ------
/trunk/scripts/build/mpfr.sh | 6 0 6 0 ------
/trunk/docs/overview.txt | 9 0 9 0 ---------
20 files changed, 1 insertion(+), 128 deletions(-)
docs/overview.txt
scripts/build/binutils.sh
scripts/build/cc/gcc.sh
scripts/build/debug/000-template.sh
scripts/build/debug/100-dmalloc.sh
scripts/build/debug/200-duma.sh
scripts/build/debug/300-gdb.sh
scripts/build/debug/400-ltrace.sh
scripts/build/debug/500-strace.sh
scripts/build/gmp.sh
scripts/build/kernel/bare-metal.sh
scripts/build/kernel/linux.sh
scripts/build/libc/eglibc.sh
scripts/build/libc/glibc.sh
scripts/build/libc/none.sh
scripts/build/libc/uClibc.sh
scripts/build/mpfr.sh
scripts/build/tools/000-template.sh
scripts/build/tools/100-libelf.sh
scripts/build/tools/200-sstrip.sh
scripts/tarball.sh.broken
     1.1 --- a/docs/overview.txt	Sat Jan 03 20:53:19 2009 +0000
     1.2 +++ b/docs/overview.txt	Sat Jan 03 21:11:41 2009 +0000
     1.3 @@ -741,15 +741,6 @@
     1.4       target tuple
     1.5     + return value: ignored
     1.6  
     1.7 - > defines the function "do_print_filename":
     1.8 -   + parameters: none
     1.9 -   + environment:
    1.10 -      - all variables from the ".config" file,
    1.11 -   + return value: ignored
    1.12 -   + behavior: output the kernel's tarball filename, with adequate suffix,
    1.13 -     on stdout.
    1.14 -       Eg.: linux-2.6.26.5.tar.bz2
    1.15 -
    1.16   > defines the function "do_kernel_get":
    1.17     + parameters: none
    1.18     + environment:
     2.1 --- a/scripts/build/binutils.sh	Sat Jan 03 20:53:19 2009 +0000
     2.2 +++ b/scripts/build/binutils.sh	Sat Jan 03 21:11:41 2009 +0000
     2.3 @@ -2,10 +2,6 @@
     2.4  # Copyright 2007 Yann E. MORIN
     2.5  # Licensed under the GPL v2. See COPYING in the root of this package
     2.6  
     2.7 -do_print_filename() {
     2.8 -    echo "binutils-${CT_BINUTILS_VERSION}"
     2.9 -}
    2.10 -
    2.11  # Download binutils
    2.12  do_binutils_get() {
    2.13      CT_GetFile "${CT_BINUTILS_FILE}"                                                    \
     3.1 --- a/scripts/build/cc/gcc.sh	Sat Jan 03 20:53:19 2009 +0000
     3.2 +++ b/scripts/build/cc/gcc.sh	Sat Jan 03 21:11:41 2009 +0000
     3.3 @@ -2,11 +2,6 @@
     3.4  # Copyright 2007 Yann E. MORIN
     3.5  # Licensed under the GPL v2. See COPYING in the root of this package
     3.6  
     3.7 -do_print_filename() {
     3.8 -    [ "${CT_CC}" = "gcc" ] || return 0
     3.9 -    echo "gcc-${CT_CC_VERSION}"
    3.10 -}
    3.11 -
    3.12  # Download gcc
    3.13  do_cc_get() {
    3.14      # Ah! gcc folks are kind of 'different': they store the tarballs in
     4.1 --- a/scripts/build/debug/000-template.sh	Sat Jan 03 20:53:19 2009 +0000
     4.2 +++ b/scripts/build/debug/000-template.sh	Sat Jan 03 21:11:41 2009 +0000
     4.3 @@ -1,16 +1,5 @@
     4.4  # Template file for a debug utility
     4.5  
     4.6 -# Small function to print the filename
     4.7 -# Note that this function gets redefined over and over for each tool
     4.8 -# It's of no use when building the toolchain proper, but shows all its
     4.9 -# usefullness when saving the toolchain and building the tarball.
    4.10 -# Echo the name of the file, without the extension, below.
    4.11 -do_print_filename() {
    4.12 -    # For example:
    4.13 -    # echo "foobar-${CT_FOOBAR_VERSION}"
    4.14 -    :
    4.15 -}
    4.16 -
    4.17  # Put your download code here
    4.18  do_debug_foobar_get() {
    4.19      # For example:
     5.1 --- a/scripts/build/debug/100-dmalloc.sh	Sat Jan 03 20:53:19 2009 +0000
     5.2 +++ b/scripts/build/debug/100-dmalloc.sh	Sat Jan 03 21:11:41 2009 +0000
     5.3 @@ -1,9 +1,5 @@
     5.4  # Build script for the dmalloc debug library facility
     5.5  
     5.6 -do_print_filename() {
     5.7 -    echo "dmalloc-${CT_DMALLOC_VERSION}"
     5.8 -}
     5.9 -
    5.10  do_debug_dmalloc_get() {
    5.11      CT_GetFile "dmalloc-${CT_DMALLOC_VERSION}" http://dmalloc.com/releases/
    5.12  }
     6.1 --- a/scripts/build/debug/200-duma.sh	Sat Jan 03 20:53:19 2009 +0000
     6.2 +++ b/scripts/build/debug/200-duma.sh	Sat Jan 03 21:11:41 2009 +0000
     6.3 @@ -1,9 +1,5 @@
     6.4  # Build script for D.U.M.A.
     6.5  
     6.6 -do_print_filename() {
     6.7 -    echo "duma_${CT_DUMA_VERSION}"
     6.8 -}
     6.9 -
    6.10  do_debug_duma_get() {
    6.11      CT_GetFile "duma_${CT_DUMA_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/duma/
    6.12      # D.U.M.A. doesn't separate its name from its version with a dash,
     7.1 --- a/scripts/build/debug/300-gdb.sh	Sat Jan 03 20:53:19 2009 +0000
     7.2 +++ b/scripts/build/debug/300-gdb.sh	Sat Jan 03 21:11:41 2009 +0000
     7.3 @@ -1,12 +1,5 @@
     7.4  # Build script for the gdb debug facility
     7.5  
     7.6 -do_print_filename() {
     7.7 -    echo "gdb$(do_debug_gdb_suffix)"
     7.8 -    if [ "${CT_GDB_NATIVE}" = "y" ]; then
     7.9 -        echo "ncurses-${CT_NCURSES_VERSION}"
    7.10 -    fi
    7.11 -}
    7.12 -
    7.13  do_debug_gdb_suffix() {
    7.14      case "${CT_GDB_VERSION}" in
    7.15          snapshot)   ;;
     8.1 --- a/scripts/build/debug/400-ltrace.sh	Sat Jan 03 20:53:19 2009 +0000
     8.2 +++ b/scripts/build/debug/400-ltrace.sh	Sat Jan 03 21:11:41 2009 +0000
     8.3 @@ -1,9 +1,5 @@
     8.4  # Build script for ltrace
     8.5  
     8.6 -do_print_filename() {
     8.7 -    echo "ltrace-${CT_LTRACE_VERSION}.orig"
     8.8 -}
     8.9 -
    8.10  do_debug_ltrace_get() {
    8.11      CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" {ftp,http}://ftp.de.debian.org/debian/pool/main/l/ltrace/
    8.12      # Create a link so that the following steps are easier to do:
     9.1 --- a/scripts/build/debug/500-strace.sh	Sat Jan 03 20:53:19 2009 +0000
     9.2 +++ b/scripts/build/debug/500-strace.sh	Sat Jan 03 21:11:41 2009 +0000
     9.3 @@ -1,9 +1,5 @@
     9.4  # Build script for strace
     9.5  
     9.6 -do_print_filename() {
     9.7 -    echo "strace-${CT_STRACE_VERSION}"
     9.8 -}
     9.9 -
    9.10  do_debug_strace_get() {
    9.11      CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
    9.12      # Downloading from sourceforge leaves garbage, cleanup
    10.1 --- a/scripts/build/gmp.sh	Sat Jan 03 20:53:19 2009 +0000
    10.2 +++ b/scripts/build/gmp.sh	Sat Jan 03 21:11:41 2009 +0000
    10.3 @@ -2,7 +2,6 @@
    10.4  # Copyright 2008 Yann E. MORIN
    10.5  # Licensed under the GPL v2. See COPYING in the root of this package
    10.6  
    10.7 -do_print_filename() { :; }
    10.8  do_gmp_get() { :; }
    10.9  do_gmp_extract() { :; }
   10.10  do_gmp() { :; }
   10.11 @@ -11,11 +10,6 @@
   10.12  # Overide functions depending on configuration
   10.13  if [ "${CT_GMP_MPFR}" = "y" ]; then
   10.14  
   10.15 -do_print_filename() {
   10.16 -    [ "${CT_GMP_MPFR}" = "y" ] || return 0
   10.17 -    echo "gmp-${CT_GMP_VERSION}"
   10.18 -}
   10.19 -
   10.20  # Download GMP
   10.21  do_gmp_get() {
   10.22      CT_GetFile "${CT_GMP_FILE}" {ftp,http}://{ftp.sunet.se/pub,ftp.gnu.org}/gnu/gmp
    11.1 --- a/scripts/build/kernel/bare-metal.sh	Sat Jan 03 20:53:19 2009 +0000
    11.2 +++ b/scripts/build/kernel/bare-metal.sh	Sat Jan 03 21:11:41 2009 +0000
    11.3 @@ -7,10 +7,6 @@
    11.4      CT_TARGET_KERNEL=
    11.5  }
    11.6  
    11.7 -do_print_filename() {
    11.8 -    :
    11.9 -}
   11.10 -
   11.11  do_kernel_get() {
   11.12      :
   11.13  }
    12.1 --- a/scripts/build/kernel/linux.sh	Sat Jan 03 20:53:19 2009 +0000
    12.2 +++ b/scripts/build/kernel/linux.sh	Sat Jan 03 21:11:41 2009 +0000
    12.3 @@ -7,10 +7,6 @@
    12.4      :
    12.5  }
    12.6  
    12.7 -do_print_filename() {
    12.8 -    echo "linux-${CT_KERNEL_VERSION}"
    12.9 -}
   12.10 -
   12.11  # Download the kernel
   12.12  do_kernel_get() {
   12.13      if [ "${CT_KERNEL_LINUX_USE_CUSTOM_DIR}" != "y" ]; then
    13.1 --- a/scripts/build/libc/eglibc.sh	Sat Jan 03 20:53:19 2009 +0000
    13.2 +++ b/scripts/build/libc/eglibc.sh	Sat Jan 03 21:11:41 2009 +0000
    13.3 @@ -1,15 +1,5 @@
    13.4  # eglibc build functions (initially by Thomas JOURDAN).
    13.5  
    13.6 -do_print_filename() {
    13.7 -    [ "${CT_LIBC}" = "eglibc" ] || return 0
    13.8 -    echo "eglibc-${CT_LIBC_VERSION}"
    13.9 -    for addon in $(do_libc_add_ons_list " "); do
   13.10 -        # NPTL addon is not to be downloaded, in any case
   13.11 -        [ "${addon}" = "nptl" ] && continue || true
   13.12 -        echo "eglibc-${addon}-${CT_LIBC_VERSION}"
   13.13 -    done
   13.14 -}
   13.15 -
   13.16  # Download eglibc repository
   13.17  do_eglibc_get() {
   13.18      CT_HasOrAbort svn
    14.1 --- a/scripts/build/libc/glibc.sh	Sat Jan 03 20:53:19 2009 +0000
    14.2 +++ b/scripts/build/libc/glibc.sh	Sat Jan 03 21:11:41 2009 +0000
    14.3 @@ -2,16 +2,6 @@
    14.4  # Copyright 2007 Yann E. MORIN
    14.5  # Licensed under the GPL v2. See COPYING in the root of this package
    14.6  
    14.7 -do_print_filename() {
    14.8 -    [ "${CT_LIBC}" = "glibc" ] || return 0
    14.9 -    echo "glibc-${CT_LIBC_VERSION}"
   14.10 -    for addon in $(do_libc_add_ons_list " "); do
   14.11 -        # NPTL addon is not to be downloaded, in any case
   14.12 -        [ "${addon}" = "nptl" ] && continue || true
   14.13 -        echo "glibc-${addon}-${CT_LIBC_VERSION}"
   14.14 -    done
   14.15 -}
   14.16 -
   14.17  # Download glibc
   14.18  do_libc_get() {
   14.19      # Ah! Not all GNU folks seem stupid. All glibc releases are in the same
    15.1 --- a/scripts/build/libc/none.sh	Sat Jan 03 20:53:19 2009 +0000
    15.2 +++ b/scripts/build/libc/none.sh	Sat Jan 03 21:11:41 2009 +0000
    15.3 @@ -2,10 +2,6 @@
    15.4  # Copyright 2008 Yann E. MORIN
    15.5  # Licensed under the GPL v2. See COPYING in the root of this package
    15.6  
    15.7 -do_print_filename() {
    15.8 -    :
    15.9 -}
   15.10 -
   15.11  do_libc_get() {
   15.12      :
   15.13  }
   15.14 @@ -22,7 +18,6 @@
   15.15      :
   15.16  }
   15.17  
   15.18 -# Build and install start files
   15.19  do_libc_start_files() {
   15.20      :
   15.21  }
    16.1 --- a/scripts/build/libc/uClibc.sh	Sat Jan 03 20:53:19 2009 +0000
    16.2 +++ b/scripts/build/libc/uClibc.sh	Sat Jan 03 21:11:41 2009 +0000
    16.3 @@ -2,12 +2,6 @@
    16.4  # Copyright 2007 Yann E. MORIN
    16.5  # Licensed under the GPL v2. See COPYING in the root of this package
    16.6  
    16.7 -do_print_filename() {
    16.8 -    [ "${CT_LIBC}" = "uClibc" ] || return 0
    16.9 -    echo "uClibc-${CT_LIBC_VERSION}"
   16.10 -    [ "${CT_LIBC_UCLIBC_LOCALES}" = "y" ] && echo "uClibc-locale-030818" || true
   16.11 -}
   16.12 -
   16.13  # Download uClibc
   16.14  do_libc_get() {
   16.15      libc_src="http://www.uclibc.org/downloads
    17.1 --- a/scripts/build/mpfr.sh	Sat Jan 03 20:53:19 2009 +0000
    17.2 +++ b/scripts/build/mpfr.sh	Sat Jan 03 21:11:41 2009 +0000
    17.3 @@ -2,7 +2,6 @@
    17.4  # Copyright 2008 Yann E. MORIN
    17.5  # Licensed under the GPL v2. See COPYING in the root of this package
    17.6  
    17.7 -do_print_filename() { :; }
    17.8  do_mpfr_get() { :; }
    17.9  do_mpfr_extract() { :; }
   17.10  do_mpfr() { :; }
   17.11 @@ -11,11 +10,6 @@
   17.12  # Overide function depending on configuration
   17.13  if [ "${CT_GMP_MPFR}" = "y" ]; then
   17.14  
   17.15 -do_print_filename() {
   17.16 -    [ "${CT_GMP_MPFR}" = "y" ] || return 0
   17.17 -    echo "mpfr-${CT_MPFR_VERSION}"
   17.18 -}
   17.19 -
   17.20  # Download MPFR
   17.21  do_mpfr_get() {
   17.22      CT_GetFile "${CT_MPFR_FILE}" http://www.mpfr.org/mpfr-current/          \
    18.1 --- a/scripts/build/tools/000-template.sh	Sat Jan 03 20:53:19 2009 +0000
    18.2 +++ b/scripts/build/tools/000-template.sh	Sat Jan 03 21:11:41 2009 +0000
    18.3 @@ -1,16 +1,5 @@
    18.4  # Template file for a tool utility
    18.5  
    18.6 -# Small function to print the filename
    18.7 -# Note that this function gets redefined over and over again for each tool.
    18.8 -# It's of no use when building the toolchain proper, but shows all its
    18.9 -# usefullness when saving the toolchain and building the tarball.
   18.10 -# Echo the name of the file, without the extension, below.
   18.11 -do_print_filename() {
   18.12 -    # For example:
   18.13 -    # echo "foobar-${CT_FOOBAR_VERSION}"
   18.14 -    :
   18.15 -}
   18.16 -
   18.17  # Put your download code here
   18.18  do_tools_foobar_get() {
   18.19      # For example:
    19.1 --- a/scripts/build/tools/100-libelf.sh	Sat Jan 03 20:53:19 2009 +0000
    19.2 +++ b/scripts/build/tools/100-libelf.sh	Sat Jan 03 21:11:41 2009 +0000
    19.3 @@ -1,9 +1,5 @@
    19.4  # Build script for libelf
    19.5  
    19.6 -do_print_filename() {
    19.7 -    echo "libelf-${CT_LIBELF_VERSION}"
    19.8 -}
    19.9 -
   19.10  do_tools_libelf_get() {
   19.11      # The server hosting libelf will return an "HTTP 300 : Multiple Choices"
   19.12      # error code if we try to download a file that does not exists there.
    20.1 --- a/scripts/build/tools/200-sstrip.sh	Sat Jan 03 20:53:19 2009 +0000
    20.2 +++ b/scripts/build/tools/200-sstrip.sh	Sat Jan 03 21:11:41 2009 +0000
    20.3 @@ -2,9 +2,6 @@
    20.4  
    20.5  case "${CT_SSTRIP_FROM}" in
    20.6      ELFkickers)
    20.7 -        do_print_filename() {
    20.8 -            echo "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
    20.9 -        }
   20.10          do_tools_sstrip_get() {
   20.11              CT_GetFile "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"     \
   20.12                         http://www.muppetlabs.com/~breadbox/pub/software
   20.13 @@ -29,9 +26,6 @@
   20.14      ;;
   20.15  
   20.16      buildroot)
   20.17 -        do_print_filename() {
   20.18 -            echo "sstrip.c"
   20.19 -        }
   20.20          do_tools_sstrip_get() {
   20.21              # Note: the space between sstrip and .c is on purpose.
   20.22              CT_GetFile sstrip .c    \
   20.23 @@ -57,10 +51,7 @@
   20.24          }
   20.25      ;;
   20.26  
   20.27 -    *)  do_print_filename() {
   20.28 -            :
   20.29 -        }
   20.30 -        do_tools_sstrip_get() {
   20.31 +    *)  do_tools_sstrip_get() {
   20.32              :
   20.33          }
   20.34          do_tools_sstrip_extract() {
    21.1 --- a/scripts/tarball.sh.broken	Sat Jan 03 20:53:19 2009 +0000
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,102 +0,0 @@
    21.4 -#!/bin/bash
    21.5 -
    21.6 -# This scripts makes a tarball of the configured toolchain
    21.7 -# Pre-requisites:
    21.8 -#  - crosstool-NG is configured
    21.9 -#  - components tarball are available
   21.10 -#  - toolchain is built successfully
   21.11 -
   21.12 -# We need the functions first:
   21.13 -. "${CT_TOP_DIR}/scripts/functions"
   21.14 -
   21.15 -# Don't care about any log file
   21.16 -exec >/dev/null
   21.17 -rm -f "${tmp_log_file}"
   21.18 -
   21.19 -# Parse the configuration file:
   21.20 -. ${CT_TOP_DIR}/.config
   21.21 -
   21.22 -# Parse the architecture-specific functions
   21.23 -. "${CT_LIB_DIR}/arch/${CT_ARCH}/functions"
   21.24 -
   21.25 -# Target tuple: CT_TARGET needs a little love:
   21.26 -CT_DoBuildTargetTuple
   21.27 -
   21.28 -# Kludge: if any of the config options needs either CT_TARGET or CT_TOP_DIR,
   21.29 -# re-parse them:
   21.30 -. "${CT_TOP_DIR}/.config"
   21.31 -
   21.32 -# Build a one-line list of files to include
   21.33 -CT_DoStep DEBUG "Building list of tarballs to add"
   21.34 -CT_TARBALLS_DIR="${CT_TOP_DIR}/targets/tarballs"
   21.35 -CT_TARBALLS=""
   21.36 -for dir in '' tools debug; do
   21.37 -    CT_DoStep DEBUG "Scanning directory '${dir}'"
   21.38 -    for script in "${CT_TOP_DIR}/scripts/build/${dir}/"*.sh; do
   21.39 -        CT_DoStep DEBUG "Testing component '${script}'"
   21.40 -        [ -n "${script}" ] || continue
   21.41 -        unset do_print_file_name
   21.42 -        . "${script}"
   21.43 -        for file in $(do_print_filename); do
   21.44 -            CT_DoLog DEBUG "Finding tarball for '${file}'"
   21.45 -            [ -n "${file}" ] || continue
   21.46 -            ext=$(CT_GetFileExtension "${file}")
   21.47 -            CT_TestOrAbort "Missing tarball for: '${file}'" -f "${CT_TOP_DIR}/targets/tarballs/${file}${ext}"
   21.48 -            CT_DoLog DEBUG "Found '${file}${ext}'"
   21.49 -            CT_TARBALLS="${CT_TARBALLS} ${file}${ext}"
   21.50 -        done
   21.51 -        CT_EndStep
   21.52 -    done
   21.53 -    CT_EndStep
   21.54 -done    
   21.55 -CT_EndStep
   21.56 -
   21.57 -# We need to emulate a build directory:
   21.58 -CT_BUILD_DIR="${CT_TOP_DIR}/targets/${CT_TARGET}/build"
   21.59 -mkdir -p "${CT_BUILD_DIR}"
   21.60 -CT_MktempDir tempdir
   21.61 -
   21.62 -# Save crosstool-NG, as it is configured for the current toolchain.
   21.63 -topdir=$(basename "${CT_TOP_DIR}")
   21.64 -CT_Pushd "${CT_TOP_DIR}/.."
   21.65 -
   21.66 -botdir=$(pwd)
   21.67 -
   21.68 -# Build the list of files to exclude
   21.69 -CT_DoLog DEBUG "Building list of files to exclude"
   21.70 -exclude_list="${tempdir}/${CT_TARGET}.list"
   21.71 -{ echo ".svn";                                                  \
   21.72 -  echo "${topdir}/log.*";                                       \
   21.73 -  echo "${topdir}/targets/src";                                 \
   21.74 -  echo "${topdir}/targets/tst";                                 \
   21.75 -  echo "${topdir}/targets/*-*-*-*";                             \
   21.76 -  for t in $(ls -1 "${topdir}/targets/tarballs/"); do            \
   21.77 -      case " ${CT_TARBALLS} " in                                \
   21.78 -          *" ${t} "*) ;;                                        \
   21.79 -          *)          echo "${topdir}/targets/tarballs/${t}";;  \
   21.80 -      esac;                                                     \
   21.81 -  done;                                                         \
   21.82 -} >"${exclude_list}"
   21.83 -
   21.84 -# Render the install directory writable
   21.85 -chmod u+w "${CT_PREFIX_DIR}"
   21.86 -
   21.87 -CT_DoLog INFO "Saving crosstool-NG into the toolchain directory"
   21.88 -tar cvjf "${CT_PREFIX_DIR}/${topdir}.${CT_TARGET}.tar.bzip2"    \
   21.89 -    --no-wildcards-match-slash                                  \
   21.90 -    -X "${exclude_list}"                                        \
   21.91 -    "${topdir}"                                                 2>&1 |CT_DoLog ALL
   21.92 -
   21.93 -CT_Popd
   21.94 -
   21.95 -CT_DoLog INFO "Saving the toolchain"
   21.96 -tar cvjf "${botdir}/${CT_TARGET}.tar.bz2" "${CT_PREFIX_DIR}"    2>&1 |CT_DoLog ALL
   21.97 -
   21.98 -CT_DoLog DEBUG "Getting rid of working directories"
   21.99 -rm -f "${CT_PREFIX_DIR}/${topdir}.${CT_TARGET}.tar.bzip2"
  21.100 -rm -rf "${tempdir}"
  21.101 -
  21.102 -if [ "${CT_INSTALL_DIR_RO}" = "y" ]; then
  21.103 -    # Render the install directory non-writable
  21.104 -    chmod u-w "${CT_PREFIX_DIR}"
  21.105 -fi