[MPlayer-cvslog] CVS: main version.sh,1.14,1.15

Diego Biurrun diego at biurrun.de
Fri May 20 13:07:11 CEST 2005


On Fri, May 20, 2005 at 07:59:51AM +0200, Björn Sandell wrote:
> On Fri, 20 May 2005 01:42:34 +0200
> Diego Biurrun <diego at biurrun.de> wrote:
> 
> > On Thu, May 19, 2005 at 09:57:44PM +0200, Björn Sandell wrote:
> > > On Thu, 19 May 2005 00:35:14 +0200
> > > Diego Biurrun <diego at biurrun.de> wrote:
> > > 
> > > > On Wed, May 18, 2005 at 11:55:54PM +0200, Diego Biurrun CVS wrote:
> > > > > 
> > > > > Modified Files:
> > > > > 	version.sh 
> > > > > Log Message:
> > > > > Make version string depend of the last change of CVS/Entries for
> > > > > Darwin.
> > > > > 
> > > > >       Darwin) 
> > > > > -        # darwin's date has different meaning for -r
> > > > > -	last_cvs_update=`date +%y%m%d-%H:%M`
> > > > > +	# Darwin/BSD 'date -r' does not print modification time
> > > > > +	LS=`ls -lT CVS/Entries`
> > > > > +	year=`echo $LS | cut -d' ' -f9 | cut -c 3-4`
> > > > > +	month=`echo $LS | awk -F" " '{printf "%.2d", \
> > > > > +	
> > > > > (index("JanFebMarAprMayJunJulAugSepOctNovDec",$7)+2)/3}'` +
> > > > > day=`echo $LS | cut -d' ' -f6` +	hour=`echo $LS | cut -d' ' -f8 |
> > > > > cut -d: -f1` +	minute=`echo $LS | cut -d' ' -f8 | cut -d: -f2`
> > > > > +	last_cvs_update="${year}${month}${day}-${hour}:${minute}"
> > > > >  	;;
> > > > 
> > > > I suspect something similar is in order for all other BSDs; and
> > > > the BSD/OS check could be simplified in a similar manner.  Could
> > > > somebody on *BSD test?
> > > 
> > > On OpenBSD the BSD/OS variant gives "dev-CVS-2005May19-21:50" and
> > > the Darwin variant gives "dev-CVS-0500May-21:50".
> > 
> > What exactly does OpenBSD print for "ls -lT CVS/Entries"?
> 
> -rw-r--r--  1 biorn  users  3446 May 20 07:54:36 2005 CVS/Entries

OK, here is what OS X 10.3.9 prints:

-rw-r--r--  1 diegobiu  diegobiu  3429 18 May 23:55:55 2005 CVS/Entries

Day and month are swapped.  Setting the LANG environment variable to C
or en_US did not change anything.

Björn, you can always send in a patch that adds another special case for
OpenBSD...

> -- 
> No one ever says, 'I can't read that ASCII E-mail you sent me.'

:-)))

Diego




More information about the MPlayer-cvslog mailing list