[samples] Don't mix canadian samples with non-canadian ones.
- save the canadian smples in their own way, so as not to
mix non-canadian samples with canadian ones
- list canadian samples with the host information
1.1 --- a/scripts/saveSample.sh.in Fri Jun 26 19:09:22 2009 +0200
1.2 +++ b/scripts/saveSample.sh.in Fri Jun 26 19:09:22 2009 +0200
1.3 @@ -62,6 +62,7 @@
1.4 # Compute the name of the sample directory
1.5 case "${CT_TOOLCHAIN_TYPE}" in
1.6 cross) samp_name="${CT_TARGET}";;
1.7 + canadian) samp_name="${CT_HOST},${CT_TARGET}";;
1.8 *) CT_Abort "Unsupported toolchain type '${CT_TOOLCHAIN_TYPE}'";;
1.9 esac
1.10 samp_dir="samples/${samp_name}"
2.1 --- a/scripts/showSamples.sh Fri Jun 26 19:09:22 2009 +0200
2.2 +++ b/scripts/showSamples.sh Fri Jun 26 19:09:22 2009 +0200
2.3 @@ -34,6 +34,12 @@
2.4 [ "${CT_EXPERIMENTAL}" = "y" ] && printf "X" || printf " "
2.5 echo "]"
2.6 if [ ${verbose} -ne 0 ]; then
2.7 + case "${CT_TOOLCHAIN_TYPE}" in
2.8 + cross) ;;
2.9 + canadian)
2.10 + printf " Host : ${CT_HOST}\n"
2.11 + ;;
2.12 + esac
2.13 echo " OS : ${CT_KERNEL}${CT_KERNEL_VERSION:+-}${CT_KERNEL_VERSION}"
2.14 if [ "${CT_GMP_MPFR}" = "y" ]; then
2.15 echo " GMP/MPFR : gmp-${CT_GMP_VERSION} / mpfr-${CT_MPFR_VERSION}"
2.16 @@ -64,8 +70,13 @@
2.17 printf "| "
2.18 [ "${CT_EXPERIMENTAL}" = "y" ] && printf "X"
2.19 [ -f "${sample_top}/samples/${sample}/broken" ] && printf "B"
2.20 - printf ' '
2.21 - printf "| ''${CT_KERNEL}'' |"
2.22 + printf ' | '
2.23 + case "${CT_TOOLCHAIN_TYPE}" in
2.24 + cross) ;;
2.25 + canadian) printf "${CT_HOST}";;
2.26 + *) ;;
2.27 + esac
2.28 + printf " | ''${CT_KERNEL}'' |"
2.29 if [ "${CT_KERNEL}" != "bare-metal" ];then
2.30 if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" = "y" ]; then
2.31 printf " //custom// "
2.32 @@ -102,13 +113,7 @@
2.33 printf "| [[http://ymorin.is-a-geek.org/|YEM]] "
2.34 fi
2.35 )
2.36 - sample_updated=$(date -u "+%Y%m%d" \
2.37 - -d "$(LC_ALL=C svn info ${sample_top}/samples/${sample} \
2.38 - |GREP_OPTIONS= "${grep}" -E '^Last Changed Date:' \
2.39 - |"${sed}" -r -e 's/^[^:]+: //;' \
2.40 - -e 's/^(.+:.. [+-][[:digit:]]{4}) \(.+\)$/\1/;' \
2.41 - )" \
2.42 - )
2.43 + sample_updated="$( hg log -l 1 --template '{date|shortdate}' "${sample_top}/samples/${sample}" )"
2.44 printf "| ${sample_updated} "
2.45 echo "|"
2.46 fi
2.47 @@ -124,6 +129,7 @@
2.48 echo "^ @@DATE@@ ^ |||||||||||||"
2.49 printf "^ Target "
2.50 printf "^ Status "
2.51 + printf "^ Host "
2.52 printf "^ Kernel headers\\\\\\\\ version ^"
2.53 printf "^ binutils\\\\\\\\ version "
2.54 printf "^ C compiler\\\\\\\\ version ^"