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

Re: [PATCH] dynamically link swig runtime on windows (Can I commit this?)

From: Russell Yanofsky <rey4_at_columbia.edu>
Date: 2003-08-08 03:41:57 CEST

Colin Watson wrote:
>> "perl -e 'print $]'" returns "5.006001" for me. What's the most
>> reliable way to derive perl56.lib from that? I'm thinking:
>>
>> _re_perl_version = re.compile(r'(\d+)\.(\d{3})')
>>
>> def perl_library(version):
>> match = _re_perl_version.match(version)
>> return 'perl' + match.group(1) + str(int(match.group(2))) +
>> '.lib'
>>
>> perl_library('5.006001')
>
> Ugh, printing something in one language with good regexp support and
> then going off and doing the regexps in another seems rather odd ...

Python also has pretty good regexp support, it's just a little more
verbose...

> You could do something like this instead:
>
> perl -MConfig -e 'print "$Config{revision}$Config{patchlevel}"'

This seems to be much more direct. If it works I'll use it instead.

> What is it you're actually trying to get here, though?

Just trying to get the name of the perl library for building the perl swig
bindings on Windows. It has different names depending on the version of perl
being used (perl56.lib, perl58.lib, etc...)

- Russ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 8 03:42:43 2003

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

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