Dennis Schridde schreef:
> Am Mittwoch, 27. Dezember 2006 20:14 schrieb Giel van Schijndel:
>   
>> Dennis Schridde schreef:
>>     
>>> NSIS doesn't offer a way to extract something from a file? Eg grep-like?
>>>       
>> No, unless you're willing to write unreasonably large functions yourself
>> (e.g.
>> http://nsis.sourceforge.net/GetBetween:_Get_text_in_between_two_markers_in_
>> a_file ). And regular expressions aren't supported AFAIK by NSIS
>>
>> But even if you did add such functions, you'd need to interpret the
>> .rc-fileformat which currently is only the job of the compiler. And to
>> my opinion it should stay the job of the compiler and shouldn't become
>> that of us using some unacceptably large NSIS script. Then as a second
>> point, the only information that might change on a regular basis is
>> currently (i.e. in SVN) already defined using command line definitions
>> (i.e. ${VERSION} and ${VERSIONNUM}) so there isn't a requirement for
>>     
> Problem with those is that you can't create VERSIONNUM automatically out of 
> VERSION. This might be suitable for the raw Makefiles, but certainly is not 
> for the automake build...
> As a workaround I added a --with-installer-version switch to configure.
Well I suppose you could use an include file in the .rc-file which
contains the version numbers, which you would then parse with the above
mentioned GetBetween function. Then use those numbers as arguments
against VIAddVersionKey.

That should be easily implemented.

--
Giel

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to