1.1 --- a/scripts/showSamples.sh Sat Jul 19 18:12:35 2008 +0000
1.2 +++ b/scripts/showSamples.sh Sun Jun 14 19:13:22 2009 +0000
1.3 @@ -18,15 +18,16 @@
1.4 local sample="$2"
1.5 if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then
1.6 sample_top="${CT_TOP_DIR}"
1.7 - sample_type="local"
1.8 + sample_type="l"
1.9 else
1.10 sample_top="${CT_LIB_DIR}"
1.11 - sample_type="global"
1.12 + sample_type="g"
1.13 fi
1.14 . "${sample_top}/samples/${sample}/crosstool.config"
1.15 if [ -z "${wiki}" ]; then
1.16 printf " %-*s (%s" ${width} "${sample}" "${sample_type}"
1.17 - [ -f "${sample_top}/samples/${sample}/broken" ] && printf ",broken"
1.18 + [ -f "${sample_top}/samples/${sample}/broken" ] && printf ",B"
1.19 + [ "${CT_EXPERIMENTAL}" = "y" ] && printf ",X"
1.20 echo ")"
1.21 if [ ${verbose} -ne 0 ]; then
1.22 echo " OS : ${CT_KERNEL}-${CT_KERNEL_VERSION}"
1.23 @@ -108,3 +109,13 @@
1.24 for sample in "${@}"; do
1.25 ( dump_single_sample ${opt} ${width} "${sample}" )
1.26 done
1.27 +
1.28 +if [ "${opt}" = -w ]; then
1.29 + printf "^ Total: ${#@} samples | ||||||||||||"
1.30 + echo ""
1.31 +elif [ -z "${opt}" ]; then
1.32 + echo ' l (local) : sample was found in current directory'
1.33 + echo ' g (global) : sample was installed with crosstool-NG'
1.34 + echo ' X (EXPERIMENTAL): sample may use EXPERIMENTAL features'
1.35 + echo ' B (BORKEN) : sample is currently broken'
1.36 +fi