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

Re: [TSVN] Feature Request: SubWCRev reads a config file...

From: Peter Mounce <pete_at_molehole.org>
Date: 2005-08-11 10:28:51 CEST

Rainer Müller wrote:
> Nathan Kidd wrote:
>
>>In case you're not familiar with sed syntax, you basically want:
>>
>>s/REPLACE THIS/WITH THIS/g
>> or
>>/ON LINES MATCHING THIS/s/REPLACE THIS/WITH THIS/g
>>
>>We use this in our build scripts all the time.
>
>
> But they should be replaced in unversioned files, right? Because otherwise you
> can't change the version numbers any more (without reverting) after the first
> time the build script ran. How do you manage that?

I suppose by making copies of the files first, doing the substitution,
then at the end of the build, removing those files.

The problem with this sort of thing as I've discovered, is maintaining
IDE-happiness. If VS expects to build one thing, it should be a part of
the solution/project file. If it's not, VS will throw either warnings
or errors (in the case of the beta WiX plugin, it will refuse to open
the project entirely, at the moment).

So if IDE-happiness is to be maintained, the scripts to do the
copy/substitution/clean-up would have to be usable as pre- and
post-build events.

Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Aug 11 10:28:52 2005

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

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