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 # Template file for a tool utility
3 # Check here wether your tool is enabled or not.
4 # This will get redefined over and over again for each tool, so don't
5 # count on it in the functions below.
6 is_enabled="${CT_FOOBAR}"
8 # Small function to print the filename
9 # Note that this function gets redefined over and over again for each tool.
10 # It's of no use when building the toolchain proper, but shows all its
11 # usefullness when saving the toolchain and building the tarball.
12 # You shall not echo anything if you're not enabled!
13 # Echo the name of the file, without the extension, below.
16 # [ "{CT_FOOBAR}" = "y" ] || return 0
17 # echo "foobar-${CT_FOOBAR_VERSION}"
21 # Put your download code here
22 do_tools_foobar_get() {
24 # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/
28 # Put your extract code here
29 do_tools_foobar_extract() {
31 # CT_ExtractAndPatch "foobar-${CT_FOOBAR_VERSION}"
35 # Put your build code here
36 do_tools_foobar_build() {
38 # mkdir -p "${CT_BUILD_DIR}/build-foobar"
39 # CT_Pushd "${CT_BUILD_DIR}/build-foobar"
40 # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure" \
41 # --build=${CT_BUILD} \
42 # --host=${CT_TARGET} \
46 # make DESTDIR="${CT_SYSROOT_DIR}" install