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 # This file adds the functions to build the GMP library
2 # Copyright 2008 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
5 if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
8 echo "gmp-${CT_GMP_VERSION}"
13 CT_GetFile "${CT_GMP_FILE}" {ftp,http}://{ftp.sunet.se/pub,ftp.gnu.org}/gnu/gmp
18 CT_ExtractAndPatch "${CT_GMP_FILE}"
22 mkdir -p "${CT_BUILD_DIR}/build-gmp"
23 cd "${CT_BUILD_DIR}/build-gmp"
25 CT_DoStep INFO "Installing GMP"
27 CT_DoLog EXTRA "Configuring GMP"
28 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
29 "${CT_SRC_DIR}/${CT_GMP_FILE}/configure" \
32 --prefix="${CT_PREFIX_DIR}" \
33 --disable-shared --enable-static \
34 --enable-fft --enable-mpbsd 2>&1 |CT_DoLog ALL
36 CT_DoLog EXTRA "Building GMP"
37 make ${PARALLELMFLAGS} 2>&1 |CT_DoLog ALL
39 if [ "${CT_GMP_CHECK}" = "y" ]; then
40 CT_DoLog EXTRA "Checking GMP"
41 make -s check 2>&1 |CT_DoLog ALL
44 CT_DoLog EXTRA "Installing GMP"
45 make install 2>&1 |CT_DoLog ALL
52 do_print_filename() { :; }
54 do_gmp_extract() { :; }