mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-07 19:30:14 +00:00
Merge pull request #270 from bhundven/fix_showSamples
showSamples.sh: Fix how we get gcc and version for showSamples.sh
This commit is contained in:
commit
b23d973e36
@ -88,12 +88,10 @@ dump_single_sample() {
|
|||||||
[ -z "${complibs}" ] || printf "\n"
|
[ -z "${complibs}" ] || printf "\n"
|
||||||
printf " %-*s : %s\n" ${width} "binutils" "binutils-${CT_BINUTILS_VERSION}"
|
printf " %-*s : %s\n" ${width} "binutils" "binutils-${CT_BINUTILS_VERSION}"
|
||||||
printf " %-*s :" ${width} "C compilers"
|
printf " %-*s :" ${width} "C compilers"
|
||||||
for cc in $(env | ${sed} -n 's/^CT_CC_\(.*\)_VERSION.*/\1/p'); do
|
cc=$(echo ${CT_CC} | ${awk} '{ print toupper($0)}')
|
||||||
cc_variable=CT_CC_${cc}_VERSION
|
version=$(eval echo \${CT_CC_${cc}_VERSION})
|
||||||
version=${!cc_variable}
|
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
|
||||||
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
|
printf " $compiler | $version"
|
||||||
printf " $compiler-$version"
|
|
||||||
done
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf " %-*s : %s" ${width} "Languages" "C"
|
printf " %-*s : %s" ${width} "Languages" "C"
|
||||||
[ "${CT_CC_LANG_CXX}" = "y" ] && printf ",C++"
|
[ "${CT_CC_LANG_CXX}" = "y" ] && printf ",C++"
|
||||||
@ -140,12 +138,10 @@ dump_single_sample() {
|
|||||||
fi
|
fi
|
||||||
printf "| ${CT_BINUTILS_VERSION} "
|
printf "| ${CT_BINUTILS_VERSION} "
|
||||||
printf "| "
|
printf "| "
|
||||||
for cc in $(env | ${sed} -n 's/^CT_CC_\(.*\)_VERSION.*/\1/p'); do
|
cc=$(echo ${CT_CC} | ${awk} '{ print toupper($0)}')
|
||||||
cc_variable=CT_CC_${cc}_VERSION
|
version=$(eval echo \${CT_CC_${cc}_VERSION})
|
||||||
version=${!cc_variable}
|
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
|
||||||
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
|
printf " $compiler | $version"
|
||||||
printf " $compiler-$version"
|
|
||||||
done
|
|
||||||
printf " "
|
printf " "
|
||||||
printf "| ''${CT_LIBC}'' |"
|
printf "| ''${CT_LIBC}'' |"
|
||||||
if [ "${CT_LIBC}" != "none" ]; then
|
if [ "${CT_LIBC}" != "none" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user