showSamples: Update to use variables from paths.sh

This change modifies the use of sed and awk to use the variables set by
paths.sh during the installation process of crosstool-NG.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
This commit is contained in:
Bryan Hundven 2015-05-09 17:38:43 -07:00
parent fa769c32bb
commit 90037b9ee3

View File

@ -103,7 +103,7 @@ dump_single_sample() {
;;
canadian)
printf "| ''"
printf "${sample}" |sed -r -e 's/.*,//'
printf "${sample}" |${sed} -r -e 's/.*,//'
printf "'' | ${CT_HOST} "
;;
*) ;;
@ -149,7 +149,7 @@ dump_single_sample() {
fi
)
sample_updated="$( git log -n1 --pretty=format:'%ci' "${sample_top}/samples/${sample}" \
|awk '{ print $1; }' )"
|${awk} '{ print $1; }' )"
printf "| ${sample_updated} "
echo "|"
fi