diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-07-01 19:04:20 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-07-01 19:04:20 +0000 |
commit | 26713d42100ebb0f949777060102b8fa20c22ffd (patch) | |
tree | c19e1e5ca3405de45e3465487ec1617fd579b532 /scripts/showSamples.sh | |
parent | c2abd16d69e6fb9514c91d81d25aa56a0633723c (diff) | |
download | crosstool-ng-26713d42100ebb0f949777060102b8fa20c22ffd.tar.gz crosstool-ng-26713d42100ebb0f949777060102b8fa20c22ffd.tar.bz2 crosstool-ng-26713d42100ebb0f949777060102b8fa20c22ffd.zip |
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-x | scripts/showSamples.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index ac05e911..f814940c 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 |