[Ffmpeg-devel] [PATCH] Show Subversion revision number in the version string
Mon Jun 19 21:20:18 CEST 2006
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:
discover a bug or something so modify a file
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.
More information about the ffmpeg-devel