On Fri, 12 Nov 2010 09:20:02 +0100, Anders Kvist wrote:
> I really like this idea! But it wouldn't work with our daily Ubuntu
> builds at Launchpad as it's a "make dist"-package that's used for
> building. But I'll take a look at it in the next couple of days, we
> defenetly need this :)

Well,

Let's say that the make dist package has a file .svninfo included.

Then during configure, .svn directory is still tested first. If that
directory exists, an svn info call is issued, if not, cat .svninfo
will do the trick.

If no .svninfo file is found as fallback, just use a "exported" string
as svn revision number.

Now just remains the problem of having that .svninfo file included
in the make dist'ed package. if autogen is called prior to make dist, 
then it could be a good candidate for generating that file.

PS: in svn projects, having the revision number is not enough.
    we should include branch/trunk name too. I plan to parse
    the svn info URL data to find that.

-- 
Edouard Gomez


_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev

Reply via email to