[Ffmpeg-devel] Problem building from snapshots
Måns Rullgård
mans
Thu Apr 19 19:27:40 CEST 2007
Michel Bardiaux <mbardiaux at mediaxim.be> writes:
> Diego Biurrun wrote:
>> On Thu, Apr 19, 2007 at 05:28:13PM +0200, Michel Bardiaux wrote:
>>> Diego Biurrun wrote:
>>> [snip]
>>>>>> test $svn_revision || svn_revision=`cd "$1" && grep revision
>>>>>> .svn/entries |
>>>>>> \
>>>>>> cut -d '"' -f2 2> /dev/null`
>>>>> The above tries to guess revision from existing svn metadata. But
>>>>> in case the client used does not leave metadata similar to the
>>>>> Linux client
>>>> The problem is that this works only on pre-1.4 Subversion clients as the
>>>> metadata was restructured with version 1.4.
>>>>
>>> Restructured in a way that makes a similar hack impossible?
>> No, somebody that understands the new format needs to come up with an
>> equivalent hack for it.
>>
>
> I managed to compile svn 1.4.3 from source. After checkout of ffmpeg,
> the file .svn/entries begins with
>
> === TOP OF FILE
> 8
>
> dir
> 8759
> svn://svn.mplayerhq.hu/ffmpeg/trunk
> svn://svn.mplayerhq.hu/ffmpeg
> === ...
>
> If this form is stable, the 'hack' is simply:
>
> test $svn_revision || svn_revision=`cd "$1" && tail +4 .svn/entries |
> head -1 \
> 2> /dev/null`
Shorter version:
sed -n '/^dir$/{n;p;q}'
This should also be more robust.
> Big 'but': is this general? The only way to know is to ask all
> developpers to have a look at their entries file.
Better to ask the subversion devs or rtfm/s.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list