[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: Mark <daems.mark_at_gmail.com>
Date: Thu, 25 Nov 2010 23:15:50 -0800 (PST)

Hi,

The people from the fpc/lazarus project (a free pascal IDE) have
written and use themselves a tool called svn2revisioninc.
As the free pascal compiler and lazarus are both available for windows
and linux (and both in 32 and 64 bit versions) I think this small
utility might be exactly what you're looking for.
It just looks at a svn working copy, gets the revision number and
outputs that info on stdout or into a (pascal) inc-file.

Here's the help information the small program outputs:
-------------------------------------------------------------------------------------------
START OF OUTPUT ------------------------------
D:\lazarus\tools>svn2revisioninc.exe --help
D:\lazarus\tools\svn2revisioninc.exe
svn2revisioninc <repository path> <output file> [Options]
or
svn2revisioninc [Options] <repository path> <output file>
or
svn2revisioninc <repository path> [Options] <output file>

Options:
 --o Output file
 --c=<name> Name of constant (default RevisionStr)
 --s write revision to stdout, do not create inc file
 --v Be more verbose
 --h This help screen

Note: <repository path> default current directory
      <output file> default revision.inc
      --o overrides <output file>

      1st switchless parameter = <repository path>
      2nd switchless parameter = <output file>
-------------------------------------------------------------------------------------------
END OF OUTPUT ------------------------------

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-11-26 08:20:13 CET

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

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