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

Re: subwcrev for UNIX

From: Kevin Grover <kevin_at_kevingrover.net>
Date: Fri, 10 Dec 2010 11:48:48 -0800

On Tue, Nov 23, 2010 at 01:22, Simon Large <simon_at_skirridsystems.co.uk>wrote:

> Please use the mailing list rather than contacting the project owners
> directly.
>
> On 23 November 2010 08:34, <andrew.marlow_at_uk.bnpparibas.com> wrote:
> >
> > Hello,
> >
> > I have just come across subwcrev which looks like a great way to get
> version
> > control information into my build. But my build is cross platform and
> > subwcrev seems to be Windoze-only. Has it been ported to UNIX yet please?
> I
> > see questions to this effect on /tortoisesvn.tigris.org but no answers.
> Some
> > of these questions date back to 2005.
>
> Where specifically have you seen those questions? It is rare for a
> question on the mailing list to go unanswered.
>
> The short answer is 'no', at least not by us. TortoiseSVN is a Windows
> explorer extension so there is no motivation to port anything to
> unix/linux within this project. Others may have done so, and there are
> certainly similar projects for other flavours of OS.
> http://tortoisesvn.net/node/58
>
> > I have been trying to find the source but without success. If I had the
> > source I could maybe port it myself. Where is the source please?
>
> It is right there on the page you referenced earlier ;-)
>
> Source code
> TortoiseSVN is hosted on a subversion repository. You can:
> Browse the source code here:
> http://code.google.com/p/tortoisesvn/source/browse/
>
> trunk/src/SubWCRev
>
> Simon
>
> --
> : ___
> : oo // \\ "De Chelonian Mobile"
> : (_,\/ \_/ \ TortoiseSVN
> : \ \_/_\_/> The coolest Interface to (Sub)Version Control
> : /_/ \_\ http://tortoisesvn.net
>
> ------------------------------------------------------
>
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2685034
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe_at_tortoisesvn.tigris.org].
>

You really don't need it in UNIX. The native tool set is sufficient. For
example, if you use 'make' or 'ant', it is (relatively) easy to get the
current wc rev, save it, and use it in further processing. It's also simple
to have a script output the current version

echo '#define SVNVER "'$(svnversion -n .)'"' > svnver.h

to create a c include file for example.

You could also recreate svnwcrev functionality using sed or m4 fairly
easily.

sed "s/@WCREV@/$(svnversion -n .)/g" file.in > file.out

NOTE: It's been so long since I've looked at svnwcrev that I don't remember
the names. The @WCREV@ reference syntax is a WAG and likely incorrect.

Cheers

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2689694

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-12-10 20:49:04 CET

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