From 9e927ffaf961b54aa7fb46f7a711ad62252188af Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 23 Jun 2013 21:14:55 +0200 Subject: [PATCH] Reimplement SLIC3R_NO_AUTO --- Build.PL | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Build.PL b/Build.PL index 77c10c5ae..c6fd4543e 100644 --- a/Build.PL +++ b/Build.PL @@ -69,8 +69,14 @@ EOF my %modules = (%prereqs, %recommends); foreach my $module (sort keys %modules) { my $version = $modules{$module}; - system $cpanm, "$module~$version"; + if ($ENV{SLIC3R_NO_AUTO}) { + print "Missing prerequisite $module $version\n" + if !eval "use $module $version; 1"; + } else { + system $cpanm, "$module~$version"; + } } +exit if $ENV{SLIC3R_NO_AUTO}; if (eval "use App::Prove; 1") { App::Prove->new->run;