3 # Parses all samples on the command line, and for each of them, prints
4 # the versions of the main tools
6 # GREP_OPTIONS screws things up.
10 dump_single_sample() {
13 . "${CT_TOP_DIR}/samples/${sample}/crosstool.config"
14 printf " %-*s" ${width} "${sample}"
15 [ -f "${CT_TOP_DIR}/samples/${sample}/broken" ] && printf " (broken)"
17 echo " \ ${CT_KERNEL}-${CT_KERNEL_VERSION} binutils-${CT_BINUTILS_VERSION}"
18 echo " \_ ${CT_CC}-${CT_CC_VERSION} ${CT_LIBC}-${CT_LIBC_VERSION}"
21 # Get largest sample width
23 for sample in "${@}"; do
24 [ ${#sample} -gt ${width} ] && width=${#sample}
27 for sample in "${@}"; do
28 ( dump_single_sample ${width} "${sample}" )