Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-08-24 14:12:46 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-08-24 14:12:46 +0400
commited0344e8615a741e96b9670e5186ee3f4b2c1a2f (patch)
treef51e5ffaf2d00686f369907ecda2f77ff5d241d0 /Build.PL
parente3b42cd21e3bd7770b492821a724bb233f7019df (diff)
Explain user that he doesn't need to worry if a failed module was optional. One more fix for Windows, also
Diffstat (limited to 'Build.PL')
-rw-r--r--Build.PL12
1 files changed, 9 insertions, 3 deletions
diff --git a/Build.PL b/Build.PL
index 8f4b53ffd..10a82710c 100644
--- a/Build.PL
+++ b/Build.PL
@@ -98,7 +98,13 @@ EOF
foreach my $module (sort keys %modules) {
my $version = $modules{$module};
my $res = system $cpanm, "$module~$version";
- $missing_prereqs = 1 if $res != 0 && exists $prereqs{$module};
+ if ($res != 0) {
+ if (exists $prereqs{$module}) {
+ $missing_prereqs = 1;
+ } else {
+ printf "Don't worry, this module is optional.\n";
+ }
+ }
}
# temporarily require this dev version until this upstream bug
@@ -109,9 +115,9 @@ EOF
# with current perl binary
if (-e './xs/Build') {
if ($^O eq 'MSWin32') {
- system 'pushd', 'xs';
+ system 'cd', 'xs';
system 'Build', 'distclean';
- system 'popd';
+ system 'cd', '..';
} else {
system './xs/Build', 'distclean';
}