[MPlayer-dev-eng] [PATCH] version.sh behavior with Darwin

Chris Roccati roccati at pobox.com
Fri May 20 20:48:12 CEST 2005


On May 20, 2005, at 13:38 , Diego Biurrun wrote:

>>>>> This patch changes the behavior of the version.sh script under
>>>>> Darwin/MacOS X to match with CygWin,Linux and BSD/OS; that is, the
>>>>> resulting VERSION macro will contain the date of the last change
>>>>> of the file CVS/Entries.
>>>> Committed something based on this patch that uses cut instead of  
>>>> awk.
>>> F.Y.I. does not work with Mac OS X 10.4.x
>> Please elaborate, works fine here on 10.3.9...
> To be precise: What does 10.4 print for "ls -lT CVS/Entries"?

ls -lT CVS/Entries returns: "-rw-r--r--   1 chris  staff  3413 May 19  
20:11:09 2005 CVS/Entries"
so the result in last_cvs_update is "0500May-20:11"

There's something totally wrong in using something like:
last_cvs_update=`perl -e 'use POSIX qw(strftime);  print strftime "%y% 
m%d-%H:%M\n", localtime((stat "CVS/Entries")[9])'`





More information about the MPlayer-dev-eng mailing list