diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-09-02 12:43:11 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-09-02 12:43:11 +0000 |
commit | 2a4ab3337015186781d53a2a42fa84ba43ef7827 (patch) | |
tree | b18334ec74379c364de00cfd60c4205c3a9bba9f /scripts/showSamples.sh | |
parent | 3d4bc007196425f4ca01074d390facd292767222 (diff) | |
download | crosstool-ng-2a4ab3337015186781d53a2a42fa84ba43ef7827.tar.gz crosstool-ng-2a4ab3337015186781d53a2a42fa84ba43ef7827.tar.bz2 crosstool-ng-2a4ab3337015186781d53a2a42fa84ba43ef7827.zip |
Warn the user if he/she recalls a sample with EXPERIMENTAL features.
Also, print the EXPERIMENTAL status when listing the samples.
/trunk/scripts/showSamples.sh | 12 9 3 0 +++++++++---
/trunk/samples/samples.mk | 12 12 0 0 ++++++++++++
2 files changed, 21 insertions(+), 3 deletions(-)
Diffstat (limited to 'scripts/showSamples.sh')
-rwxr-xr-x | scripts/showSamples.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index c27446ec..8cfde210 100755 --- a/scripts/showSamples.sh +++ b/scripts/showSamples.sh @@ -18,15 +18,16 @@ dump_single_sample() { local sample="$2" if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then sample_top="${CT_TOP_DIR}" - sample_type="local" + sample_type="l" else sample_top="${CT_LIB_DIR}" - sample_type="global" + sample_type="g" fi . "${sample_top}/samples/${sample}/crosstool.config" if [ -z "${wiki}" ]; then printf " %-*s (%s" ${width} "${sample}" "${sample_type}" - [ -f "${sample_top}/samples/${sample}/broken" ] && printf ",broken" + [ -f "${sample_top}/samples/${sample}/broken" ] && printf ",B" + [ "${CT_EXPERIMENTAL}" = "y" ] && printf ",X" echo ")" if [ ${verbose} -ne 0 ]; then echo " OS : ${CT_KERNEL}-${CT_KERNEL_VERSION}" @@ -129,4 +130,9 @@ done if [ "${opt}" = -w ]; then printf "^ Total: ${#@} samples | ||||||||||||" echo "" +elif [ -z "${opt}" ]; then + echo ' l (local) : sample was found in current directory' + echo ' g (global) : sample was installed with crosstool-NG' + echo ' X (EXPERIMENTAL): sample may use EXPERIMENTAL features' + echo ' B (BORKEN) : sample is currently broken' fi |