[Ffmpeg-devel] Problem building from snapshots
Michel Bardiaux
mbardiaux
Thu Apr 19 17:08:19 CEST 2007
Sibnath GHOSH wrote:
> I have the following line in version.sh. From which file is the Revision
> read.
>
> svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision |
> cut -d' ' -f2`
The above gets the revision using svn itself. But in case svn is not
installed on that machine (eg if it NFS-mounts a disk from the machine
used for the svn update)
> 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, second fallback:
> test $svn_revision || svn_revision=UNKNOWN
> NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
> OLD_REVISION=`cat version.h 2> /dev/null`
>
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be
Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
More information about the ffmpeg-devel
mailing list