[Ffmpeg-devel] [PATCH]version.sh don't work if svn command unavailable. Rewriting of search in .svn/entries

Dujardin Bernard dujardin.iut
Fri Feb 23 17:02:43 CET 2007


Nigel Pearson a ?crit :
>
> On 23/02/2007, at 6:43 AM, Dujardin Bernard wrote:
>
>> When svn is unavailable version.sh fall on this grep search
>>
>> test $svn_revision || svn_revision=`cd "$1" && grep revision 
>> .svn/entries | \
>>                                    cut -d '"' -f2 2> /dev/null`
>
> As an alternative, MythTV uses svnversion:
When svn stuff is installed 'version.sh' works by an svn command call :

svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision 
| cut -d' ' -f2`

and it's work fine.

My patch concern only box without svn or svnversion (case of nightly 
subversion
checkout tarball download by example). In this case, resolve version number
rely only on the content of  ".svn/entries" file and don't work with 
grep revision...

regards
Bernard






More information about the ffmpeg-devel mailing list