diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-05-20 21:32:39 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-05-20 21:32:39 (GMT) |
commit | 0c4633c37fcfab7c1632330c070884c3295db1d2 (patch) | |
tree | 5fdc1c68e709845d81b7f29df9c63f86d4f0397b /scripts/tarball.sh.broken | |
parent | 62c87c5adf144f0600cdaeedfc159376cf819c79 (diff) |
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(-)
Diffstat (limited to 'scripts/tarball.sh.broken')
-rwxr-xr-x | scripts/tarball.sh.broken | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/tarball.sh.broken b/scripts/tarball.sh.broken index 9787c21..c26ac0a 100755 --- a/scripts/tarball.sh.broken +++ b/scripts/tarball.sh.broken @@ -31,18 +31,18 @@ CT_DoStep DEBUG "Building list of tarballs to add" CT_TARBALLS_DIR="${CT_TOP_DIR}/targets/tarballs" CT_TARBALLS="" for dir in '' tools debug; do - CT_DoStep DEBUG "Scanning directory \"${dir}\"" + CT_DoStep DEBUG "Scanning directory '${dir}'" for script in "${CT_TOP_DIR}/scripts/build/${dir}/"*.sh; do - CT_DoStep DEBUG "Testing component \"${script}\"" + CT_DoStep DEBUG "Testing component '${script}'" [ -n "${script}" ] || continue unset do_print_file_name . "${script}" - for file in `do_print_filename`; do - CT_DoLog DEBUG "Finding tarball for \"${file}\"" + for file in $(do_print_filename); do + CT_DoLog DEBUG "Finding tarball for '${file}'" [ -n "${file}" ] || continue - ext=`CT_GetFileExtension "${file}"` - CT_TestOrAbort "Missing tarball for: \"${file}\"" -f "${CT_TOP_DIR}/targets/tarballs/${file}${ext}" - CT_DoLog DEBUG "Found \"${file}${ext}\"" + ext=$(CT_GetFileExtension "${file}") + CT_TestOrAbort "Missing tarball for: '${file}'" -f "${CT_TOP_DIR}/targets/tarballs/${file}${ext}" + CT_DoLog DEBUG "Found '${file}${ext}'" CT_TARBALLS="${CT_TARBALLS} ${file}${ext}" done CT_EndStep @@ -57,10 +57,10 @@ mkdir -p "${CT_BUILD_DIR}" CT_MktempDir tempdir # Save crosstool-NG, as it is configured for the current toolchain. -topdir=`basename "${CT_TOP_DIR}"` +topdir=$(basename "${CT_TOP_DIR}") CT_Pushd "${CT_TOP_DIR}/.." -botdir=`pwd` +botdir=$(pwd) # Build the list of files to exclude CT_DoLog DEBUG "Building list of files to exclude" @@ -70,7 +70,7 @@ exclude_list="${tempdir}/${CT_TARGET}.list" echo "${topdir}/targets/src"; \ echo "${topdir}/targets/tst"; \ echo "${topdir}/targets/*-*-*-*"; \ - for t in `ls -1 "${topdir}/targets/tarballs/"`; do \ + for t in $(ls -1 "${topdir}/targets/tarballs/"); do \ case " ${CT_TARBALLS} " in \ *" ${t} "*) ;; \ *) echo "${topdir}/targets/tarballs/${t}";; \ |