File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11Revision history for Perl extension Module::Build.
22
3+ - Add code to special case dot-in-inc in Build
4+
350.4222 - Thu Mar 30 15:40:10 CEST 2017
46
57 - Released 0.42_21 as 0.4222
Original file line number Diff line number Diff line change @@ -1824,6 +1824,11 @@ sub print_build_script {
18241824 my $shebang = $self -> _startperl;
18251825 my $magic_number = $self -> magic_number;
18261826
1827+ my $dot_in_inc_code = $INC [-1] eq ' .' ? <<'END' : ' ' ;
1828+ if ($INC[-1] ne '.') {
1829+ push @INC, '.';
1830+ }
1831+ END
18271832 print $fh <<EOF ;
18281833$shebang
18291834
@@ -1860,6 +1865,7 @@ BEGIN {
18601865 (
18611866$quoted_INC
18621867 );
1868+ $dot_in_inc_code
18631869}
18641870
18651871close(*DATA) unless eof(*DATA); # ensure no open handles to this script
You can’t perform that action at this time.
0 commit comments