scripts/showSamples.sh
changeset 824 cc4590c03dd1
parent 807 71241c4f09e1
child 825 7e90583334e0
     1.1 --- a/scripts/showSamples.sh	Mon Aug 25 21:42:34 2008 +0000
     1.2 +++ b/scripts/showSamples.sh	Tue Sep 02 19:50:45 2008 +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 @@ -129,4 +130,9 @@
    1.24  if [ "${opt}" = -w ]; then
    1.25      printf "^ Total: ${#@} samples  | ||||||||||||"
    1.26      echo   ""
    1.27 +elif [ -z "${opt}" ]; then
    1.28 +    echo '      l (local)       : sample was found in current directory'
    1.29 +    echo '      g (global)      : sample was installed with crosstool-NG'
    1.30 +    echo '      X (EXPERIMENTAL): sample may use EXPERIMENTAL features'
    1.31 +    echo '      B (BORKEN)      : sample is currently broken'
    1.32  fi