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

Re: How to get the version number out?

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-02-16 17:04:12 CET

On 2/16/07, Kenny Leung <kenny_leung@pobox.com> wrote:
> Hi Andy.
>
> I suspect this will only work with a checked-out copy of the project,
> but not an exported copy, is that correct?

According to the following text in that FAQ entry, I think you're right:

"The information you want (the *revision of your working copy*) is
available from the command svnversion;"

> On Feb 15, 2007, at 7:39 PM, Andy Levy wrote:
>
> > On 2/15/07, Kenny Leung <kenny_leung@pobox.com> wrote:
> >> Hi All.
> >>
> >> As part of our release process, I would like to "burn" the version
> >> number into the binary. I thought an easy way would be to create a
> >> file in the project directory with something like #define VERSION XXX
> >> upon export. However, there does not seem to be a post-export hook.
> >
> > Have you seen http://subversion.tigris.org/faq.html#version-value-
> > in-source ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 16 17:04:41 2007

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.