Add '--- 'to at the start of all echo messages to aid debugging
authorBrian Dolbec <dolsen@gentoo.org>
Fri, 25 Jan 2013 04:09:08 +0000 (20:09 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Sat, 2 Mar 2013 02:27:26 +0000 (18:27 -0800)
targets/support/functions.sh

index 941b6ca794c69176b3816fcbf18f9f89c243c8a8..6bfa3a279c229e3a4f78142fde6da6a78a094ec1 100755 (executable)
@@ -2,14 +2,14 @@ copy_to_chroot() {
        local src_file=$1
        local dest_dir=${clst_chroot_path}${2:-/tmp}
        mkdir -p ${dest_dir}
-       echo "copying ${src_file##*/} to ${dest_dir}"
+       echo "--- Copying ${src_file##*/} to ${dest_dir}"
        cp -pPR "${src_file}" "${dest_dir}"/
 }
 
 delete_from_chroot(){
        if [ -e ${clst_chroot_path}${1} ]
        then
-               echo "removing ${clst_chroot_path}${1} from the chroot"
+               echo "--- Removing ${clst_chroot_path}${1} from the chroot"
                rm -f ${clst_chroot_path}${1}
        fi
 }
@@ -22,17 +22,17 @@ exec_in_chroot(){
        local subdir=${2}
        local destdir=".${subdir}/tmp"
 
-       echo "Copying ${file_name} to ${destdir}"
+       echo "--- Copying ${file_name} to ${destdir}"
        copy_to_chroot ${1} ${destdir}
        copy_to_chroot ${clst_shdir}/support/chroot-functions.sh \
                ${destdir}
 
        chroot_path=${clst_chroot_path}${subdir}
 
-       echo "Ensure the file has the executable bit set"
+       echo "--- Ensure the file has the executable bit set"
        chmod +x ${chroot_path}/${destdir}/${file_name}
 
-       echo "Running ${file_name} in chroot ${chroot_path}"
+       echo "--- Running ${file_name} in chroot ${chroot_path}"
        ${clst_CHROOT} ${chroot_path} ${destdir}/${file_name} || exit 1
 
        delete_from_chroot ${destdir}/${file_name}
@@ -123,7 +123,7 @@ extract_modules() {
                mkdir -p ${1}/
                tar -I lbzip2 -xf ${kmodules} --strip-components 1 -C ${1}/lib lib
        else
-               echo "Can't find kernel modules tarball at ${kmodules}.  Skipping...."
+               echo "--- Can't find kernel modules tarball at ${kmodules}.  Skipping...."
        fi
 }
 extract_kernel() {