scripts/build/tools.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 20 21:32:39 2008 +0000 (2008-05-20)
changeset 523 010f6f4e4dd6
parent 479 05c62432ec19
child 916 68af6b83ff7e
permissions -rw-r--r--
Get rid of all `command` (which is a bashism), and replace them with $(command), which is POSIX.
Get rid of all remaining \"text\" in log messages and replace them with 'text'.
Optimise the progress bar, should go un-noticed at log level DEBUG and below.

/trunk/scripts/build/tools/200-sstrip.sh | 16 8 8 0 ++--
/trunk/scripts/build/libc_glibc.sh | 50 25 25 0 +++++++-------
/trunk/scripts/build/libc_uClibc.sh | 4 2 2 0
/trunk/scripts/build/debug/100-dmalloc.sh | 2 1 1 0
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0
/trunk/scripts/build/debug/300-gdb.sh | 8 4 4 0 +-
/trunk/scripts/build/debug/200-duma.sh | 6 3 3 0 +-
/trunk/scripts/build/kernel_linux.sh | 30 15 15 0 ++++----
/trunk/scripts/build/cc_gcc.sh | 14 7 7 0 ++--
/trunk/scripts/crosstool.sh | 54 27 27 0 ++++++++--------
/trunk/scripts/functions | 128 64 64 0 ++++++++++++++++++------------------
/trunk/scripts/saveSample.sh | 4 2 2 0
/trunk/scripts/tarball.sh.broken | 20 10 10 0 +++---
/trunk/tools/addToolVersion.sh | 8 4 4 0 +-
/trunk/tools/populate.in | 18 9 9 0 ++--
15 files changed, 182 insertions(+), 182 deletions(-)
     1 # Wrapper to build the tools facilities
     2 
     3 # List all tools facilities, and parse their scripts
     4 CT_TOOLS_FACILITY_LIST=
     5 for f in "${CT_LIB_DIR}/scripts/build/tools/"*.sh; do
     6     is_enabled=
     7     . "${f}"
     8     f=$(basename "${f}" .sh)
     9     if [ "${is_enabled}" = "y" ]; then
    10         CT_TOOLS_FACILITY_LIST="${CT_TOOLS_FACILITY_LIST} ${f#???-}"
    11     fi
    12 done
    13 
    14 # Download the tools facilities
    15 do_tools_get() {
    16     for f in ${CT_TOOLS_FACILITY_LIST}; do
    17         do_tools_${f}_get
    18     done
    19 }
    20 
    21 # Extract and patch the tools facilities
    22 do_tools_extract() {
    23     for f in ${CT_TOOLS_FACILITY_LIST}; do
    24         do_tools_${f}_extract
    25     done
    26 }
    27 
    28 # Build the tools facilities
    29 do_tools() {
    30     for f in ${CT_TOOLS_FACILITY_LIST}; do
    31         do_tools_${f}_build
    32     done
    33 }
    34