scripts/build/debug/500-strace.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
child 669 ca740b4c4262
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 # Build script for strace
     2 
     3 is_enabled="${CT_STRACE}"
     4 
     5 do_print_filename() {
     6     [ "${CT_STRACE}" = "y" ] || return 0
     7     echo "strace-${CT_STRACE_VERSION}"
     8 }
     9 
    10 do_debug_strace_get() {
    11     CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
    12 }
    13 
    14 do_debug_strace_extract() {
    15     CT_ExtractAndPatch "strace-${CT_STRACE_VERSION}"
    16 }
    17 
    18 do_debug_strace_build() {
    19     CT_DoStep INFO "Installing strace"
    20     mkdir -p "${CT_BUILD_DIR}/build-strace"
    21     CT_Pushd "${CT_BUILD_DIR}/build-strace"
    22 
    23     CT_DoLog EXTRA "Configuring strace"
    24     "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure"   \
    25         --build=${CT_BUILD}                                 \
    26         --host=${CT_TARGET}                                 \
    27         --prefix=/usr                                       2>&1 |CT_DoLog ALL
    28 
    29     CT_DoLog EXTRA "Building strace"
    30     make    2>&1 |CT_DoLog ALL
    31 
    32     CT_DoLog EXTRA "Installing strace"
    33     make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install  2>&1 |CT_DoLog ALL
    34 
    35     CT_Popd
    36     CT_EndStep
    37 }
    38