diff -r 510ac868c3ac -r c359aa844414 scripts/showSamples.sh --- a/scripts/showSamples.sh Sat Jul 19 18:12:35 2008 +0000 +++ b/scripts/showSamples.sh Fri Sep 05 11:20:38 2008 +0000 @@ -18,15 +18,16 @@ 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}" @@ -108,3 +109,13 @@ for sample in "${@}"; do ( dump_single_sample ${opt} ${width} "${sample}" ) 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