summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorNicolas R <atoomic@cpan.org>2019-10-08 09:26:36 -0600
committerNicolas R <atoomic@cpan.org>2019-11-08 12:01:12 -0700
commit83f5592b34350bbd3e6471433bffed1664f57a75 (patch)
tree0e85870cab63ecbf5d7b3406f5a34f8bd2f67cd9 /dist
parentbd0e76db93fab334167b9594f98cd1c415275b33 (diff)
downloadperl-83f5592b34350bbd3e6471433bffed1664f57a75.tar.gz
cat_file util in Makefile
References #137 (cherry picked from commit fb6dad1b13facfbcdf834a6b95db2320410d7c78) Signed-off-by: Nicolas R <atoomic@cpan.org>
Diffstat (limited to 'dist')
-rw-r--r--dist/Devel-PPPort/Makefile.PL10
1 files changed, 9 insertions, 1 deletions
diff --git a/dist/Devel-PPPort/Makefile.PL b/dist/Devel-PPPort/Makefile.PL
index cd0c49325e..e2a54f7c4c 100644
--- a/dist/Devel-PPPort/Makefile.PL
+++ b/dist/Devel-PPPort/Makefile.PL
@@ -23,6 +23,14 @@ use Config;
use vars '%opt'; # needs to be global, and we can't use 'our'
+sub cat_file
+{
+ eval { require File::Spec };
+ return $@ ? join('/', @_) : File::Spec->catfile(@_);
+}
+
+my $t_01_test = cat_file('t', '01_test.t');
+
unless ($ENV{'PERL_CORE'}) {
$ENV{'PERL_CORE'} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV;
}
@@ -52,7 +60,7 @@ sub configure
'ppport_h.PL' => 'ppport.h',
'PPPort_pm.PL' => 'PPPort.pm',
'RealPPPort_xs.PL' => 'RealPPPort.xs',
- 'mktests.PL' => 't/01_test.t',
+ 'mktests.PL' => $t_01_test,
);
my @moreopts;