[MPlayer-cvslog] r18560 - trunk/version.sh

Ivan Kalvachev ikalvachev at gmail.com
Mon Jun 5 09:51:16 CEST 2006


2006/6/5, rtogni <subversion at mplayerhq.hu>:
> Author: rtogni
> Date: Mon Jun  5 00:48:59 2006
> New Revision: 18560
>
> Modified:
>    trunk/version.sh
>
> Log:
> SVN switch: get version date from .svn subdir instead of CVS/Entries
>
>
> Modified: trunk/version.sh
> ==============================================================================
> --- trunk/version.sh    (original)
> +++ trunk/version.sh    Mon Jun  5 00:48:59 2006
> @@ -3,13 +3,13 @@
>  OS=`uname -s`
>  case "$OS" in
>    CYGWIN*|Linux|MINGW*)
> -    last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
> +    last_cvs_update=`date -r .svn +%y%m%d-%H:%M 2>/dev/null`
>      ;;
>    Darwin|*BSD*)
>      # BSD 'date -r' does not print modification time
>      # LC_ALL=C sets month/day order and English language in the date string
>      # The if in the awk call works around wrong day/month order.
> -    last_cvs_update=`LC_ALL=C ls -lT CVS/Entries | \
> +    last_cvs_update=`LC_ALL=C ls -lT .svn | \
>        awk '{ \
>          day=$7; \
>          month=index(" JanFebMarAprMayJunJulAugSepOctNovDec", $6); \

Unfortunately it seems the directory date is updated on every
checkout, no matter of the changes in it.

I remember conversation on irc day or 2 ago (with Rathann, probably),
about parsing .svn/entries and extracting "commit-date" or even better
"revision" from it. (grep, head, cut).

I'm sure he will commit it when he sees we have working svn.



More information about the MPlayer-cvslog mailing list