Re: [NAnt-users] Setting version numbers in .RC files ...

2009-03-05 Thread Parrish, Ken
Gert,

Thanks for your reply.  I'm finally getting to work on this.

I have worked up a solution using a 'template' .RC file which has tokens
in the form of @TOKEN_NAME@ which I replace with an appropriately
formatted version number and then copy to the proper .RC file name.  In
this case, I am using the replacetokens filter chain directive.  This
works and is reliable.

It would be better to modify .RC files in place.  However, because of
variations in the value of existing version numbers, I would need to use
some sort of regular expression evaluation and substitution to change
them.

For example, if my source file had a line like:

VALUE BuildRev, 10.0.0:5

I would want to replace the characters '10.0.0:5' with a new value.
Something like:

Replace: {VALUE \BuildRev\,.*\}{.*}{\}
With: \112.3.4.5\2

Any chance there is a way to use regular expressions in combination with
filter chains as part of the replacestring directive?

Thanks,

Ken Parrish
Gomez, Inc.

-Original Message-
From: Gert Driesen [mailto:gert.drie...@telenet.be] 
Sent: Friday, February 27, 2009 8:22 AM
To: Parrish, Ken; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Setting version numbers in .RC files ...

Hi Ken,

You can use filterchains for this:
http://nant.sourceforge.net/release/latest/help/types/filterchain.html

Hope this helps,

Gert

-Original Message-
From: Parrish, Ken [mailto:kparr...@gomez.com] 
Sent: donderdag 26 februari 2009 22:28
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Setting version numbers in .RC files ...

I'm looking for a task or code snippet for setting the version numbers
in C++ project .RC files which get compiled into .EXE and .DLL.

It's been while, but I seem to recall a discussion about this some
months ago.

Has anyone tackled this problem as yet?

Ken Parrish
Gomez, Inc.



--
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.11.2/1965 - Release Date:
2/21/2009
3:36 PM


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Setting version numbers in .RC files ...

2009-02-27 Thread Gert Driesen
Hi Ken,

You can use filterchains for this:
http://nant.sourceforge.net/release/latest/help/types/filterchain.html

Hope this helps,

Gert

-Original Message-
From: Parrish, Ken [mailto:kparr...@gomez.com] 
Sent: donderdag 26 februari 2009 22:28
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Setting version numbers in .RC files ...

I'm looking for a task or code snippet for setting the version numbers
in C++ project .RC files which get compiled into .EXE and .DLL.

It's been while, but I seem to recall a discussion about this some
months ago.

Has anyone tackled this problem as yet?

Ken Parrish
Gomez, Inc.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.11.2/1965 - Release Date: 2/21/2009
3:36 PM


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Setting version numbers in .RC files ...

2009-02-26 Thread Parrish, Ken
I'm looking for a task or code snippet for setting the version numbers
in C++ project .RC files which get compiled into .EXE and .DLL.

It's been while, but I seem to recall a discussion about this some
months ago.

Has anyone tackled this problem as yet?

Ken Parrish
Gomez, Inc.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users