diff -r 5e5d02b2d786 -r 010f6f4e4dd6 scripts/tarball.sh.broken --- a/scripts/tarball.sh.broken Sun Sep 16 08:52:26 2007 +0000 +++ b/scripts/tarball.sh.broken Tue May 20 21:32:39 2008 +0000 @@ -31,18 +31,18 @@ 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 @@ 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 @@ 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}";; \