On Mon, Apr 01, 2002 at 02:38:46PM -0600, Craig A. Berry wrote:
> This is a not entirely portable revision of a completely unportable method 
> of determining whether enc2xs is being run during a core build, but it does 
> allow the build to proceed on VMS.  Can't the extensions that use enc2xs 
> pass it a parameter of PERL_CORE=$(PERL_CORE) or similar?  

$ENV{PERL_CORE} will be set, it can use that.

The @INC hacking should be unnecessary, but the second half of my "MM
& Encode fixes" which makes it unnecessary seems to have been lost.
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-03/msg02345.html


> --- ext/Encode/bin/enc2xs;-0    Sun Mar 31 15:05:56 2002
> +++ ext/Encode/bin/enc2xs       Mon Apr  1 14:20:56 2002
> @@ -1,7 +1,7 @@
>  #!./perl
>  BEGIN {
> -    # fiddle with @INC iff I am a part of perl dist
> -    if ($^X =~ m/\bminiperl$/o){
> +    # fiddle with @INC if I am a part of perl dist
> +    if ($^X =~ m/miniperl(?:\.exe\;\d+)?$/o) {
>         warn "Fixing \@INC for perl core.\n";
>         unshift @INC, qw(../../lib ../../../lib ../../../../lib);
>         $ENV{PATH} .= ';../..;../../..;../../../..' if $^O eq 'MSWin32';


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
AY!  The ground beef, she is burning my groin!
        http://sluggy.com/d/990105.html

Reply via email to