From eb2a7ba9b0b56055654182f92c66aaa9067c877c Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 26 Nov 2009 00:22:17 +0100 Subject: scripts: directly spit-out the date in the WiKi table, misc eye-candy No need to go through a post-processing just for displaying the date... diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index 78ed7f1..002b4c4 100755 --- a/scripts/showSamples.sh +++ b/scripts/showSamples.sh @@ -82,8 +82,8 @@ dump_single_sample() { *) ;; esac printf "| " - [ "${CT_EXPERIMENTAL}" = "y" ] && printf "X" - [ -f "${sample_top}/samples/${sample}/broken" ] && printf "B" + [ "${CT_EXPERIMENTAL}" = "y" ] && printf "**X**" + [ -f "${sample_top}/samples/${sample}/broken" ] && printf "**B**" printf " | ''${CT_KERNEL}'' |" if [ "${CT_KERNEL}" != "bare-metal" ];then if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" = "y" ]; then @@ -134,7 +134,7 @@ for sample in "${@}"; do done if [ "${opt}" = -w ]; then - echo "^ @@DATE@@ |||||||||||||||" + printf "^ %s |||||||||||||||\n" "$( date "+%Y%m%d.%H%M %z" )" printf "^ Target " printf "^ Host " printf "^ Status " @@ -155,7 +155,7 @@ for sample in "${@}"; do done |LC_ALL=C sort -k2 if [ "${opt}" = -w ]; then - printf "^ Total: ${#@} samples || ''X'': sample uses features marked as being EXPERIMENTAL.\\\\\\\\ ''B'': sample is curently BROKEN. |||||||||||||" + printf "^ Total: ${#@} samples || **X**: sample uses features marked as being EXPERIMENTAL.\\\\\\\\ **B**: sample is curently BROKEN. |||||||||||||" echo "" elif [ -z "${opt}" ]; then echo ' l (local) : sample was found in current directory' -- cgit v0.10.2-6-g49f6