scripts/showSamples.sh
changeset 760 80098c869f5e
parent 737 f02cd568eec9
child 807 71241c4f09e1
     1.1 --- a/scripts/showSamples.sh	Sun Jul 27 12:03:34 2008 +0000
     1.2 +++ b/scripts/showSamples.sh	Tue Aug 05 13:27:09 2008 +0000
     1.3 @@ -86,6 +86,14 @@
     1.4          else
     1.5              printf "|  [[http://ymorin.is-a-geek.org/|YEM]]  "
     1.6          fi
     1.7 +        sample_updated=$(date -u "+%Y%m%d"                                                  \
     1.8 +                              -d "$(LC_ALL=C svn info ${sample_top}/samples/${sample}       \
     1.9 +                                    |GREP_OPTIONS= egrep '^Last Changed Date:'              \
    1.10 +                                    |sed -r -e 's/^[^:]+: //;'                              \
    1.11 +                                            -e 's/^(.+:.. [+-][[:digit:]]{4}) \(.+\)$/\1/;' \
    1.12 +                                   )"                                                       \
    1.13 +                        )
    1.14 +        printf "|  ${sample_updated}  "
    1.15          echo "|"
    1.16      fi
    1.17  }
    1.18 @@ -97,7 +105,7 @@
    1.19  done
    1.20  
    1.21  if [ "${opt}" = -w ]; then
    1.22 -    echo "^ $(date +%Y%m%d.%H%M) ^ |||||||||||"
    1.23 +    echo "^ @@DATE@@  ^ ||||||||||||"
    1.24      printf "^ Target "
    1.25      printf "^  Kernel headers\\\\\\\\ version  ^"
    1.26      printf "^  binutils version  "
    1.27 @@ -106,7 +114,8 @@
    1.28      printf "^  Threading model  "
    1.29      printf "^  Floating point\\\\\\\\ support  "
    1.30      printf "^  Languages  "
    1.31 -    printf "^  First reported by  "
    1.32 +    printf "^  Initially\\\\\\\\ reported by  "
    1.33 +    printf "^  Last\\\\\\\\ updated  "
    1.34      echo   "^"
    1.35  fi
    1.36  
    1.37 @@ -115,6 +124,6 @@
    1.38  done
    1.39  
    1.40  if [ "${opt}" = -w ]; then
    1.41 -    printf "^ Total: ${#@} samples  | |||||||||||"
    1.42 +    printf "^ Total: ${#@} samples  | ||||||||||||"
    1.43      echo   ""
    1.44  fi