subwcrev for linux equivalent
#5
Not exactly what I had in mind, but close enough.

I can't do a similar thing for windows, so instead I need the svnversion or whatever tool to process a file, WCVersion.h, that only contains the SVN revision number defined as a macro. On Windows, I can make that file a .template and it will be automagically processed into the correct header by subwcrev; I'm looking for a similar way in *nix. Thus:

WCVersion.h.template contents:
#define WCREV $WCREV$

From that, subwcrev generates WCVersion.h:
#define WCREV 340

Whichever file in the project needs the revision number, just does an #include "WCVersion.h"

Can this be done easily on *nix?
Reply
Thanks given by:


Messages In This Thread
subwcrev for linux equivalent - by xoft - 02-26-2012, 11:08 PM
RE: subwcrev for linux equivalent - by tbar - 02-27-2012, 04:46 PM
RE: subwcrev for linux equivalent - by xoft - 02-28-2012, 10:30 PM
RE: subwcrev for linux equivalent - by tbar - 02-29-2012, 05:43 AM
RE: subwcrev for linux equivalent - by xoft - 02-29-2012, 06:03 AM
RE: subwcrev for linux equivalent - by tbar - 02-29-2012, 06:45 AM
RE: subwcrev for linux equivalent - by xoft - 03-14-2012, 07:38 PM



Users browsing this thread: 1 Guest(s)