[Ffmpeg-devel] [PATCH] Show Subversion revision number in the version string
Luca Barbato
lu_zero
Mon Jun 19 22:32:02 CEST 2006
Aurelien Jacobs wrote:
> On Mon, 19 Jun 2006 15:29:42 +0200
> Lo?c Le Loarer <lll+ffmpeg at m4x.org> wrote:
>
>> Le Monday 19 June 2006 ? 16:24:25 +0300, ??smail D?nmez a ?crit:
>>> Pazartesi 19 Haziran 2006 16:16 tarihinde, Christophe Mutricy ??unlar??
>>> yazm????t??:
>>>> Hello,
>>>>
>>>>> +FFMPEG_VERSION="SVN-r`grep committed-rev .svn/entries | sed 1q | cut -d
>>>>> '"' -f 2 2>/dev/null`"
>>>> What about "svnversion" ? It will take a bit longer but gives you more
>>>> exact info. ( if there are some modifications or all directories are not
>>>> at the same rev)
>>> svnversion looks way slower than a simple grep, it took 11 seconds on mplayer
>>> SVN tree while grep is instant. What would be the exact cases grep would
>>> fail?
>> If there are local modifications, svnversion adds a M char at the end of
>> the revision number, this is very usefull, it is a bit like the tainted
>> flag of the linux kernel.
>
> That feature might be nice, but doing this at configure time would be
> almost useless IMO.
> What I often do:
> svn co
> ./configure
> make
> discover a bug or something so modify a file
> make
> Then the revision number will never show the M status (but still takes
> 11 seconds or whatever at configure time).
>
> The only sensible way to use svnversion would be at make time, but
> slowing down every make call by 11 seconds is IMHO not acceptable.
>
> Aurel
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
cough
svn up
time svnversion
5498
real 0m0.098s
user 0m0.048s
sys 0m0.032s
put it in the Makefile.
lu
--
Luca Barbato
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
More information about the ffmpeg-devel
mailing list