Return-Path: Delivered-To: apmail-perl-modperl-cvs-archive@www.apache.org Received: (qmail 56423 invoked from network); 10 Nov 2003 18:53:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Nov 2003 18:53:11 -0000 Received: (qmail 86516 invoked by uid 500); 10 Nov 2003 18:53:03 -0000 Delivered-To: apmail-perl-modperl-cvs-archive@perl.apache.org Received: (qmail 86438 invoked by uid 500); 10 Nov 2003 18:53:03 -0000 Mailing-List: contact modperl-cvs-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@perl.apache.org Delivered-To: mailing list modperl-cvs@perl.apache.org Received: (qmail 86425 invoked by uid 500); 10 Nov 2003 18:53:02 -0000 Delivered-To: apmail-modperl-2.0-cvs@apache.org Date: 10 Nov 2003 18:53:10 -0000 Message-ID: <20031110185310.56411.qmail@minotaur.apache.org> From: stas@apache.org To: modperl-2.0-cvs@apache.org Subject: cvs commit: modperl-2.0/build win32_fetch_apxs X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N stas 2003/11/10 10:53:10 Modified: build win32_fetch_apxs Log: postpone the requirement of Archive::Tar and LWP::Simple until they needed. Revision Changes Path 1.2 +4 -2 modperl-2.0/build/win32_fetch_apxs Index: win32_fetch_apxs =================================================================== RCS file: /home/cvs/modperl-2.0/build/win32_fetch_apxs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -u -r1.1 -r1.2 --- win32_fetch_apxs 7 Nov 2003 08:38:24 -0000 1.1 +++ win32_fetch_apxs 10 Nov 2003 18:53:10 -0000 1.2 @@ -14,9 +14,7 @@ use warnings; use Getopt::Long; use File::Spec::Functions; -use Archive::Tar; use File::Path; -use LWP::Simple; use ExtUtils::MakeMaker qw(prompt); use Cwd; @@ -61,6 +59,9 @@ my $ans = prompt('Install apxs now?', 'yes'); exit 0 unless $ans =~ /^y/i; +require LWP::Simple; +LWP::Simple->import(qw(is_success getstore)); + my $file = 'apxs_win32.tar.gz'; unless (-e $file) { my $remote = 'http://perl.apache.org/dist/win32-bin/' . $file; @@ -70,6 +71,7 @@ print " done!\n"; } +require Archive::Tar; my $cwd = getcwd; my $dir = 'apxs'; my $arc = Archive::Tar->new($file, 1);