summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-11-11 23:54:54 (GMT)
committerGitHub <noreply@github.com>2017-11-11 23:54:54 (GMT)
commit7a1e90c3ceab074de901f2d10df7118596003af6 (patch)
tree0e5b09107c179a652bee7f93a2f9eded6890f8bd
parent521d6c1782b7dc4cea7dcf2baf5bc047a7664939 (diff)
parent09151040fba978c6ecebe412880c58121a45d402 (diff)
Merge pull request #862 from ksergeyv/master
use ${CT_${cc}_VERSION} to show a compiler version
-rw-r--r--scripts/showSamples.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh
index 726ea2e..a1b0aec 100644
--- a/scripts/showSamples.sh
+++ b/scripts/showSamples.sh
@@ -113,7 +113,7 @@ dump_single_sample() {
printf " %-*s : %s\n" ${width} "binutils" "binutils-${CT_BINUTILS_VERSION}"
printf " %-*s :" ${width} "C compilers"
cc=$(echo ${CT_CC} | ${awk} '{ print toupper($0)}')
- version=$(eval echo \${CT_CC_${cc}_VERSION})
+ version=$(eval echo \${CT_${cc}_VERSION})
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
printf " $compiler-$version"
printf "\n"
@@ -162,7 +162,7 @@ dump_single_sample() {
printf "| ${CT_BINUTILS_VERSION} "
printf "| "
cc=$(echo ${CT_CC} | ${awk} '{ print toupper($0)}')
- version=$(eval echo \${CT_CC_${cc}_VERSION})
+ version=$(eval echo \${CT_${cc}_VERSION})
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
printf " $compiler | $version"
printf " "