[MPlayer-dev-eng] version.sh patch

Arpi arpi at thot.banki.hu
Tue Jul 30 21:09:45 CEST 2002


Hi,

hmm, what about this one? is it portable enough, to be commitable?
and, what ahppens if no Entries file at all? syntax error?

> Hi,
> 
> this is a small patch for the mplayer cvs version-string, so that
> the true last cvs update and not just the last cvs update in the
> top level directory is shown in the version-string.
> 
> 
> Andreas
> 
> 
> Index: version.sh
> ===================================================================
> RCS file: /cvsroot/mplayer/main/version.sh,v
> retrieving revision 1.8
> diff -u -r1.8 version.sh
> --- version.sh  3 May 2002 19:17:19 -0000       1.8
> +++ version.sh  15 Jul 2002 11:41:15 -0000
> @@ -7,6 +7,13 @@
>  elif test `uname -s` = 'Darwin' ; then
>          # darwin's date has different meaning for -r
>          last_cvs_update=`date +%y%m%d-%H:%M`
> +else
> +       for i in `find . -name Entries 2>/dev/null` ; do
> +               x=`date -r $i +%y%m%d-%H:%M`
> +               if test $x \> $last_cvs_update ; then
> +                       last_cvs_update=$x
> +               fi
> +       done
>  fi
> 
>  echo "#define VERSION \"CVS-${last_cvs_update}-$1 \"" >version.h
> 


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list