X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=cygwin%2Fperlld.in;h=557d7d1eb42004d747bdb827a5226e21fbc972ba;hb=51254d33a14eeacb273f244a97f13b86d9e56aa2;hp=4281be6a5ea845d4137ed08c896906254e58b236;hpb=51077201bf64ca460983010aa8b90b2241c04094;p=p5sagit%2Fp5-mst-13.2.git diff --git a/cygwin/perlld.in b/cygwin/perlld.in index 4281be6..557d7d1 100644 --- a/cygwin/perlld.in +++ b/cygwin/perlld.in @@ -46,11 +46,12 @@ if ($args !~ /\-o (\S+)/) { $path =~ s,[/\\](\.[/\\])*,/,g; } if ($dllname =~ /\./) { $libname =$`; } else { $libname =$dllname; }; - my $v_e_r_s = '5_8_0'; - if ( $dllname =~ /.*perl.*/) { + my $v_e_r_s = '@VERSION@'; + $v_e_r_s =~ tr/./_/; + if ( $dllname =~ /libperl.*/) { $dllname ="cygperl$v_e_r_s.dll"; } else { - $dllname ="$libname.dll"; + $dllname ="$libname.dll"; } $libname ="lib$libname" unless ($libname =~ /^lib/); print DEBUGFILE "dll name: $dllname\nimport library: $libname\npath: $path\n" if $DEBUG; @@ -76,8 +77,8 @@ if ($args !~ /\-o (\S+)/) { close DEBUGFILE if $DEBUG; #--------------------------------------------------------------------------- -sub shellexec{ - my $command =shift; +sub shellexec { + my $command = shift; print $command; print DEBUGFILE $command if $DEBUG; system($command) == 0