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

Chris Roccati roccati at pobox.com
Sat Jun 4 19:10:09 CEST 2005


On 4 Jun 2005, at 15:39 , Diego Biurrun wrote:

>> The current version.sh from the CVS "almost works", with both Mac OS
>> X 10.4.x 10.3.x.
>> The attached patch (which should be harmless for "the rest of the
>> world") fixes everything.
>

> Not here (OS X 10.3.9):

I assumed it "almost worked" both on 10.3 and 10.4. In fact does not  
work on either, just in different ways...
It turns out that 10.3.x ls says "-rw-r--r-- 1 chris staff 3413 2 Jun  
21:29:35 2005 CVS/Entries" whereas 10.4.x ls says "-rw-r--r-- 1 chris  
staff 3413 Jun 2 21:29:35 2005 CVS/Entries".

Without the patch, no error is generated, but the output string is  
wrong:
under 10.4, if the day of the month is less than 10 the version  
string is yymmd-hh:mm
under 10.3, the version string is always yy00Mon-hh:mm

This patch uses a perl version of the incantation if the os is  
Darwin. There's ALWAYS perl with darwin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: version_sh.patch
Type: application/octet-stream
Size: 765 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050604/77597cdb/attachment.obj>


More information about the MPlayer-dev-eng mailing list