scripts/showSamples.sh
changeset 2982 1e35d2fa54d7
parent 2838 822af73497bf
child 3012 95173b196a88
     1.1 --- a/scripts/showSamples.sh	Mon Jan 16 23:36:42 2012 +0100
     1.2 +++ b/scripts/showSamples.sh	Mon May 07 21:37:59 2012 +0200
     1.3 @@ -14,7 +14,7 @@
     1.4  export GREP_OPTIONS=
     1.5  
     1.6  # Dump a single sample
     1.7 -# Note: we can quite safely used the non-mangled .config.2
     1.8 +# Note: we use the specific .config.sample config file
     1.9  dump_single_sample() {
    1.10      local verbose=0
    1.11      local complibs
    1.12 @@ -25,9 +25,8 @@
    1.13      case "${sample}" in
    1.14          current)
    1.15              sample_type="l"
    1.16 -            sample="${current_tuple}"
    1.17 +            sample="$( ${CT_NG} show-tuple )"
    1.18              width="${#sample}"
    1.19 -            . $(pwd)/.config
    1.20              ;;
    1.21          *)  if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then
    1.22                  sample_top="${CT_TOP_DIR}"
    1.23 @@ -36,9 +35,9 @@
    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 +    . $(pwd)/.config.sample
    1.31      if [ -z "${wiki}" ]; then
    1.32          t_width=14
    1.33          printf "%-*s  [%s" ${width} "${sample}" "${sample_type}"