[Ffmpeg-devel] Problem building from snapshots

Sibnath GHOSH sibnath.ghosh
Thu Apr 19 16:43:55 CEST 2007

I have the following line in version.sh. From which file is the Revision

svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision |
cut -d' ' -f2`
test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries |
                                    cut -d '"' -f2 2> /dev/null`
test $svn_revision || svn_revision=UNKNOWN
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
OLD_REVISION=`cat version.h 2> /dev/null`


-----Original Message-----
From: ffmpeg-devel-bounces at mplayerhq.hu
[mailto:ffmpeg-devel-bounces at mplayerhq.hu] On Behalf Of Diego Biurrun
Sent: Thursday, April 19, 2007 4:32 PM
To: FFmpeg development discussions and patches
Subject: Re: [Ffmpeg-devel] Problem building from snapshots

On Thu, Apr 19, 2007 at 04:11:18PM +0200, Michel Bardiaux wrote:
> Diego Biurrun wrote:
> >On Thu, Apr 19, 2007 at 03:34:42PM +0200, Michel Bardiaux wrote:
> >>If you download the 'bare sources' snapshot and do a 'make 
> >>distclean', version.h is removed, and configure makes it UNKNOWN.
> >
> >Dunno what you refer to by "it", but configure does nothing to 
> >version.h.
> >
> >>When the svn metadata are not present, version.sh should not be removed.

> >>by make distclean.
> >
> >version.sh is not removed by make distclean, version.h is.
> >
> >The information I gather from this confused report does not lead me 
> >to a reproducible problem.  It's all working fine and dandy here...
> Yes, definitely not one of my best shows! Once more with feeling:
> * download the 'bare sources' snapshot
> * make distclean
> => version.h is removed
> * configure
> * make
> => new version.h with -rUNKNOWN

Ummmmm, no ...

cerebus:/tmp/ffmpeg-export-2007-04-19$ cat version.sh #!/bin/sh

OLD_REVISION=`cat version.h 2> /dev/null`

# Update version.h only on revision changes to avoid spurious rebuilds if
test "$NEW_REVISION" != "$OLD_REVISION"; then
    echo "$NEW_REVISION" > version.h

There is no way this script can result in rUNKNOWN.  You must be using a
different snapshot.

ffmpeg-devel mailing list
ffmpeg-devel at mplayerhq.hu

More information about the ffmpeg-devel mailing list