summaryrefslogtreecommitdiff
path: root/scripts/showSamples.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-01 19:04:20 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-01 19:04:20 (GMT)
commit26713d42100ebb0f949777060102b8fa20c22ffd (patch)
treec19e1e5ca3405de45e3465487ec1617fd579b532 /scripts/showSamples.sh
parentc2abd16d69e6fb9514c91d81d25aa56a0633723c (diff)
Merge the build system to trunk: ct-ng is now installable:
- ./configure --prefix=/some/place - make - make install - export PATH="${PATH}:/some/place/bin" - ct-ng <action>
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