From: Jos I. Boumans Date: Mon, 28 May 2007 15:06:52 +0000 (+0200) Subject: Add /nologo to nmake in CPANPLUS::Dist::Build too X-Git-Tag: accepted/trunk/20130322.191538~15180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=031ea58b5f01bc2ac9d97f55c77a227a794972bf;p=platform%2Fupstream%2Fperl.git Add /nologo to nmake in CPANPLUS::Dist::Build too From: "Jos I. Boumans" Message-Id: <90E1CAA6-8529-4DD1-9D42-A377538E9320@xs4all.nl> p4raw-id: //depot/perl@31293 --- diff --git a/lib/CPANPLUS/Dist/Build/t/02_CPANPLUS-Dist-Build.t b/lib/CPANPLUS/Dist/Build/t/02_CPANPLUS-Dist-Build.t index 92da256..490420e 100644 --- a/lib/CPANPLUS/Dist/Build/t/02_CPANPLUS-Dist-Build.t +++ b/lib/CPANPLUS/Dist/Build/t/02_CPANPLUS-Dist-Build.t @@ -13,7 +13,7 @@ use CPANPLUS::Module::Author::Fake; use Config; use Test::More 'no_plan'; -use File::Basename (); +use File::Basename qw[basename]; use Data::Dumper; use Config; use IPC::Cmd 'can_run'; @@ -53,6 +53,19 @@ $Conf->set_conf( signature => 0 ); ### running tests will mess with the test output so skip 'm $Conf->set_conf( skiptest => 1 ); +### dmq tells us that we should run with /nologo +### if using nmake, as it's very noise otherwise. +### XXX copied from CPANPLUS' test include file! +{ my $make = $Conf->get_program('make'); + if( $make and basename($make) =~ /^nmake/i and + $make !~ m|/nologo| + ) { + $make .= ' /nologo'; + $Conf->set_program( make => $make ); + } +} + + # path, cc needed? my %Map = ( noxs => 0, xs => 1 diff --git a/lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz.packed b/lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz.packed index cc2951c..d88c88e 100644 --- a/lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz.packed +++ b/lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz.packed @@ -10,7 +10,7 @@ To recreate it use the following command: uupacktool.pl -p lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz.packed -Created at Tue May 22 13:44:00 2007 +Created at Mon May 28 14:55:52 2007 ######################################################################### __UU__ M'XL("-