mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
ca5213a387
- revert sample dumping to not show the components versions; docs/overview.txt: - reorder docs/overview.txt so that configuring comes before running, - tell about regtest; Makefile: config/global.in: - point to docs/overview.txt for the list of steps;
27 lines
586 B
Bash
Executable File
27 lines
586 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Parses all samples on the command line, and for each of them, prints
|
|
# the versions of the main tools
|
|
|
|
# GREP_OPTIONS screws things up.
|
|
export GREP_OPTIONS=
|
|
|
|
# Dump a single sample
|
|
dump_single_sample() {
|
|
local width="$1"
|
|
local sample="$2"
|
|
printf " %-*s" ${width} "${sample}"
|
|
[ -f "${CT_TOP_DIR}/samples/${sample}/broken" ] && printf " (broken)"
|
|
echo
|
|
}
|
|
|
|
# Get largest sample width
|
|
width=0
|
|
for sample in "${@}"; do
|
|
[ ${#sample} -gt ${width} ] && width=${#sample}
|
|
done
|
|
|
|
for sample in "${@}"; do
|
|
( dump_single_sample ${width} "${sample}" )
|
|
done
|