1.1 --- a/scripts/showSamples.sh Sun Jan 03 18:33:23 2010 +0100
1.2 +++ b/scripts/showSamples.sh Sun Jan 31 15:57:22 2010 +0100
1.3 @@ -20,14 +20,21 @@
1.4 [ "$1" = "-w" ] && wiki=1 && shift
1.5 local width="$1"
1.6 local sample="$2"
1.7 - if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then
1.8 - sample_top="${CT_TOP_DIR}"
1.9 - sample_type="l"
1.10 - else
1.11 - sample_top="${CT_LIB_DIR}"
1.12 - sample_type="g"
1.13 - fi
1.14 - . "${sample_top}/samples/${sample}/crosstool.config"
1.15 + case "${sample}" in
1.16 + current)
1.17 + sample_type="l"
1.18 + . .config
1.19 + ;;
1.20 + *) if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then
1.21 + sample_top="${CT_TOP_DIR}"
1.22 + sample_type="l"
1.23 + else
1.24 + sample_top="${CT_LIB_DIR}"
1.25 + sample_type="g"
1.26 + fi
1.27 + . "${sample_top}/samples/${sample}/crosstool.config"
1.28 + ;;
1.29 + esac
1.30 if [ -z "${wiki}" ]; then
1.31 t_width=13
1.32 printf "%-*s [%s" ${width} "${sample}" "${sample_type}"