1.1 --- a/scripts/tarball.sh.broken Sun Sep 16 08:52:26 2007 +0000
1.2 +++ b/scripts/tarball.sh.broken Wed Jul 02 13:12:30 2008 +0000
1.3 @@ -31,18 +31,18 @@
1.4 CT_TARBALLS_DIR="${CT_TOP_DIR}/targets/tarballs"
1.5 CT_TARBALLS=""
1.6 for dir in '' tools debug; do
1.7 - CT_DoStep DEBUG "Scanning directory \"${dir}\""
1.8 + CT_DoStep DEBUG "Scanning directory '${dir}'"
1.9 for script in "${CT_TOP_DIR}/scripts/build/${dir}/"*.sh; do
1.10 - CT_DoStep DEBUG "Testing component \"${script}\""
1.11 + CT_DoStep DEBUG "Testing component '${script}'"
1.12 [ -n "${script}" ] || continue
1.13 unset do_print_file_name
1.14 . "${script}"
1.15 - for file in `do_print_filename`; do
1.16 - CT_DoLog DEBUG "Finding tarball for \"${file}\""
1.17 + for file in $(do_print_filename); do
1.18 + CT_DoLog DEBUG "Finding tarball for '${file}'"
1.19 [ -n "${file}" ] || continue
1.20 - ext=`CT_GetFileExtension "${file}"`
1.21 - CT_TestOrAbort "Missing tarball for: \"${file}\"" -f "${CT_TOP_DIR}/targets/tarballs/${file}${ext}"
1.22 - CT_DoLog DEBUG "Found \"${file}${ext}\""
1.23 + ext=$(CT_GetFileExtension "${file}")
1.24 + CT_TestOrAbort "Missing tarball for: '${file}'" -f "${CT_TOP_DIR}/targets/tarballs/${file}${ext}"
1.25 + CT_DoLog DEBUG "Found '${file}${ext}'"
1.26 CT_TARBALLS="${CT_TARBALLS} ${file}${ext}"
1.27 done
1.28 CT_EndStep
1.29 @@ -57,10 +57,10 @@
1.30 CT_MktempDir tempdir
1.31
1.32 # Save crosstool-NG, as it is configured for the current toolchain.
1.33 -topdir=`basename "${CT_TOP_DIR}"`
1.34 +topdir=$(basename "${CT_TOP_DIR}")
1.35 CT_Pushd "${CT_TOP_DIR}/.."
1.36
1.37 -botdir=`pwd`
1.38 +botdir=$(pwd)
1.39
1.40 # Build the list of files to exclude
1.41 CT_DoLog DEBUG "Building list of files to exclude"
1.42 @@ -70,7 +70,7 @@
1.43 echo "${topdir}/targets/src"; \
1.44 echo "${topdir}/targets/tst"; \
1.45 echo "${topdir}/targets/*-*-*-*"; \
1.46 - for t in `ls -1 "${topdir}/targets/tarballs/"`; do \
1.47 + for t in $(ls -1 "${topdir}/targets/tarballs/"); do \
1.48 case " ${CT_TARBALLS} " in \
1.49 *" ${t} "*) ;; \
1.50 *) echo "${topdir}/targets/tarballs/${t}";; \