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 # Biuld script for D.U.M.A.
3 is_enabled="${CT_DUMA}"
6 [ "${CT_DUMA}" = "y" ] || return 0
7 echo "duma_${CT_DUMA_VERSION}"
11 CT_GetFile "duma_${CT_DUMA_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/duma/
12 # D.U.M.A. doesn't separate its name from its version with a dash,
13 # but with an underscore. Create a link so that crosstool-NG can
15 cd "${CT_TARBALLS_DIR}"
16 duma_ext=$(CT_GetFileExtension "duma_${CT_DUMA_VERSION}")
17 rm -f "duma-${CT_DUMA_VERSION}${duma_ext}"
18 ln -sf "duma_${CT_DUMA_VERSION}${duma_ext}" "duma-${CT_DUMA_VERSION}${duma_ext}"
21 do_debug_duma_extract() {
22 CT_ExtractAndPatch "duma-${CT_DUMA_VERSION}"
24 rm -f "duma-${CT_DUMA_VERSION}"
25 ln -sf "duma_${CT_DUMA_VERSION}" "duma-${CT_DUMA_VERSION}"
28 do_debug_duma_build() {
29 CT_DoStep INFO "Installing D.U.M.A."
30 CT_DoLog EXTRA "Copying sources"
31 cp -a "${CT_SRC_DIR}/duma_${CT_DUMA_VERSION}" "${CT_BUILD_DIR}/build-duma"
32 CT_Pushd "${CT_BUILD_DIR}/build-duma"
35 [ "${CT_CC_LANG_CXX}" = "y" ] && DUMA_CPP=1
38 [ "${CT_DUMA_A}" = "y" ] && libs="${libs} libduma.a"
39 [ "${CT_DUMA_SO}" = "y" ] && libs="${libs} libduma.so.0.0"
40 for lib in ${libs}; do
41 CT_DoLog EXTRA "Building library '${lib}'"
42 make HOSTCC="${CT_CC_NATIVE}" \
43 HOSTCXX="${CT_CC_NATIVE}" \
44 CC="${CT_TARGET}-${CT_CC}" \
45 CXX="${CT_TARGET}-${CT_CC}" \
46 DUMA_CPP="${DUMA_CPP}" \
47 ${libs} 2>&1 |CT_DoLog ALL
48 CT_DoLog EXTRA "Installing library '${lib}'"
49 install -m 644 "${lib}" "${CT_SYSROOT_DIR}/usr/lib" 2>&1 |CT_DoLog ALL
51 if [ "${CT_DUMA_SO}" = "y" ]; then
52 CT_DoLog EXTRA "Installing shared library links"
53 ln -vsf libduma.so.0.0 "${CT_SYSROOT_DIR}/usr/lib/libduma.so.0" 2>&1 |CT_DoLog ALL
54 ln -vsf libduma.so.0.0 "${CT_SYSROOT_DIR}/usr/lib/libduma.so" 2>&1 |CT_DoLog ALL
56 CT_DoLog EXTRA "Installing LD_PRELOAD wrapper script"
57 mkdir -p "${CT_DEBUG_INSTALL_DIR}/usr/bin"
59 "${CT_DEBUG_INSTALL_DIR}/usr/bin/duma" 2>&1 |CT_DoLog ALL