# HG changeset patch # User "Yann E. MORIN" # Date 1217350100 0 # Node ID 0cbd1eb86f68459f2eb8b2c5a3c4855575767572 # Parent dcb8700b9a68e2a719d3184824ef5bff60c8e0e8 Pretyy-up the WiKi table with the date of last update for each sample. /trunk/scripts/showSamples.sh | 15 12 3 0 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff -r dcb8700b9a68 -r 0cbd1eb86f68 scripts/showSamples.sh --- a/scripts/showSamples.sh Tue Jul 29 08:51:15 2008 +0000 +++ b/scripts/showSamples.sh Tue Jul 29 16:48:20 2008 +0000 @@ -86,6 +86,14 @@ else printf "| [[http://ymorin.is-a-geek.org/|YEM]] " fi + sample_updated=$(date -u "+%Y%m%d" \ + -d "$(LC_ALL=C svn info ${sample_top}/samples/${sample} \ + |GREP_OPTIONS= egrep '^Last Changed Date:' \ + |sed -r -e 's/^[^:]+: //;' \ + -e 's/^(.+:.. [+-][[:digit:]]{4}) \(.+\)$/\1/;' \ + )" \ + ) + printf "| ${sample_updated} " echo "|" fi } @@ -97,7 +105,7 @@ done if [ "${opt}" = -w ]; then - echo "^ $(date +%Y%m%d.%H%M) ^ |||||||||||" + echo "^ @@DATE@@ ^ ||||||||||||" printf "^ Target " printf "^ Kernel headers\\\\\\\\ version ^" printf "^ binutils version " @@ -106,7 +114,8 @@ printf "^ Threading model " printf "^ Floating point\\\\\\\\ support " printf "^ Languages " - printf "^ First reported by " + printf "^ Initially\\\\\\\\ reported by " + printf "^ Last\\\\\\\\ updated " echo "^" fi @@ -115,6 +124,6 @@ done if [ "${opt}" = -w ]; then - printf "^ Total: ${#@} samples | |||||||||||" + printf "^ Total: ${#@} samples | ||||||||||||" echo "" fi