Skip to content

Commit f2ed880

Browse files
committed
cat_file util in Makefile
References #137 (cherry picked from commit fb6dad1b13facfbcdf834a6b95db2320410d7c78) Signed-off-by: Nicolas R <[email protected]>
1 parent 1462134 commit f2ed880

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

dist/Devel-PPPort/Makefile.PL

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ use Config;
2323

2424
use vars '%opt'; # needs to be global, and we can't use 'our'
2525

26+
sub cat_file
27+
{
28+
eval { require File::Spec };
29+
return $@ ? join('/', @_) : File::Spec->catfile(@_);
30+
}
31+
32+
my $t_01_test = cat_file('t', '01_test.t');
33+
2634
unless ($ENV{'PERL_CORE'}) {
2735
$ENV{'PERL_CORE'} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV;
2836
}
@@ -52,7 +60,7 @@ sub configure
5260
'ppport_h.PL' => 'ppport.h',
5361
'PPPort_pm.PL' => 'PPPort.pm',
5462
'RealPPPort_xs.PL' => 'RealPPPort.xs',
55-
'mktests.PL' => 't/01_test.t',
63+
'mktests.PL' => $t_01_test,
5664
);
5765
my @moreopts;
5866

0 commit comments

Comments
 (0)