diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-29 16:48:20 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-29 16:48:20 +0000 |
commit | f7b84b7716445d777fd27858dceb1610154a2c94 (patch) | |
tree | 06fe9a7db565d9f909d058f063f7f1757ffaf677 /scripts/showSamples.sh | |
parent | 4b53fa764f62d047098bf18f6a8f7e110da061d7 (diff) | |
download | crosstool-ng-f7b84b7716445d777fd27858dceb1610154a2c94.tar.gz crosstool-ng-f7b84b7716445d777fd27858dceb1610154a2c94.tar.bz2 crosstool-ng-f7b84b7716445d777fd27858dceb1610154a2c94.zip |
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(-)
Diffstat (limited to 'scripts/showSamples.sh')
-rwxr-xr-x | scripts/showSamples.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index 38e8642f..5b336e2d 100755 --- a/scripts/showSamples.sh +++ b/scripts/showSamples.sh @@ -86,6 +86,14 @@ dump_single_sample() { 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 @@ for sample in "${@}"; do 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 @@ if [ "${opt}" = -w ]; then 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 @@ for sample in "${@}"; do done if [ "${opt}" = -w ]; then - printf "^ Total: ${#@} samples | |||||||||||" + printf "^ Total: ${#@} samples | ||||||||||||" echo "" fi |