[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Version string / Id, Revision

From: Basile STARYNKEVITCH <basile_at_starynkevitch.net>
Date: 2006-03-06 20:22:10 CET

Le Mon, Mar 06, 2006 at 08:13:16PM +0100, Reinhard Thies écrivait/wrote:
> Hello,
>
> I am quit new to subversion but it works fine so far.
> Now I have the following problem.
> I am using a version string in my software.

You might have a generated file (not SVN versioned) which is the
output of "svn info", for example a makefile rule like

timestamp.c:
        date +"const char timetstamp[]=\"%c\";" > $@
        echo "const char svnrev[]=\" $(svn info | grep -i Rev) "\";" >> $@

I didn't test the above, but I hope you got the idea. I'm assuming a
Linux/Unix GNU-make-like stuff

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net 
aliases: basile<at>tunes<dot>org = bstarynk<at>nerim<dot>net
8, rue de la Faïencerie, 92340 Bourg La Reine, France
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 6 20:26:59 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.