summaryrefslogtreecommitdiff
path: root/scripts/tarball.sh.broken
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tarball.sh.broken')
-rwxr-xr-xscripts/tarball.sh.broken20
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}";; \