[MPlayer-dev-eng] version.sh patch

Felix Buenemann atmosfear at users.sourceforge.net
Wed Jul 31 01:24:18 CEST 2002


On Tuesday 30 July 2002 21:09, Arpi wrote:
> Hi,
>
> hmm, what about this one? is it portable enough, to be commitable?
hmm :)
> and, what ahppens if no Entries file at all? syntax error?
no, it will simply skip the for loop (I would need to check the whole script 
to see, what the last_cvs_update var is set to in that case. However it 
should be test $x -gt $last_cvs_update, as it is IMHO more portable (I know 
that works on HP-UX9 ;)

> > 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
>

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________



More information about the MPlayer-dev-eng mailing list