summaryrefslogtreecommitdiff
path: root/scripts/showSamples.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/showSamples.sh')
-rwxr-xr-xscripts/showSamples.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh
index ac05e91..f814940 100755
--- a/scripts/showSamples.sh
+++ b/scripts/showSamples.sh
@@ -10,9 +10,16 @@ export GREP_OPTIONS=
dump_single_sample() {
local width="$1"
local sample="$2"
- printf " %-*s" ${width} "${sample}"
- [ -f "${CT_TOP_DIR}/samples/${sample}/broken" ] && printf " (broken)"
- echo
+ if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then
+ sample_top="${CT_TOP_DIR}"
+ sample_type="local"
+ else
+ sample_top="${CT_LIB_DIR}"
+ sample_type="global"
+ fi
+ printf " %-*s (%s" ${width} "${sample}" "${sample_type}"
+ [ -f "${sample_top}/samples/${sample}/broken" ] && printf ",broken"
+ echo ")"
}
# Get largest sample width