[Ffmpeg-devel] version.sh

Diego Biurrun diego
Thu Aug 31 21:17:10 CEST 2006


On Tue, Aug 29, 2006 at 02:53:45PM +0200, Michel Bardiaux wrote:
> It works only when svn is installed. It means ffmpeg is considered 
> SVN-rUNKNOWN on all my systems except debian sarge. This is particularly 
> annoying since the existence of a global version number is one of the 
> most interesting features of svn vs. cvs.

Hmm, yes, this is a drawback of the current version.sh.

> Proposal: if svn is not available (or always?) use the first 
> committed-rev line in .svn/entries at the top. This is something of a 
> hack since it assumes the global rev is first, but it could be made more 
> secure by checking there is a name="" 1 line below and kind="dir" 5 
> lines below and a matching revision="6125" 8 lines below.

If this is used as a fallback then it's OK with me.

Look through the history of MPlayer's version.sh script, we used a
similar approach before switching to 'svn info'.

http://svn.mplayerhq.hu/mplayer/trunk/version.sh?view=log

Diego




More information about the ffmpeg-devel mailing list