diff options
author | Sergey Korolev <s.korolev@ndmsystems.com> | 2017-11-04 20:39:50 +0300 |
---|---|---|
committer | Sergey Korolev <s.korolev@ndmsystems.com> | 2017-11-11 23:38:13 +0300 |
commit | 09151040fba978c6ecebe412880c58121a45d402 (patch) | |
tree | 0e5b09107c179a652bee7f93a2f9eded6890f8bd | |
parent | 521d6c1782b7dc4cea7dcf2baf5bc047a7664939 (diff) | |
download | crosstool-ng-09151040fba978c6ecebe412880c58121a45d402.tar.gz crosstool-ng-09151040fba978c6ecebe412880c58121a45d402.tar.bz2 crosstool-ng-09151040fba978c6ecebe412880c58121a45d402.zip |
use ${CT_${cc}_VERSION} to show a compiler version
Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
-rw-r--r-- | scripts/showSamples.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index 726ea2e0..a1b0aec8 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 " " |