"Fossies" - the Fresh Open Source Software Archive

Member "Module-Build-0.4224/inc/bootstrap.pl" (30 May 2017, 1266 Bytes) of package /linux/privat/Module-Build-0.4224.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "bootstrap.pl" see the Fossies "Dox" file reference documentation.

    1 # bootstrap.pl
    2 # bootstrap modules in inc/ for use during configuration with
    3 # either Build.PL or Makefile.PL
    4 
    5 my @exit_warn;
    6 
    7 END {
    8   warn "\nThese additional prerequisites must be installed:\n  requires:\n"
    9     if @exit_warn;
   10   while( my $h = shift @exit_warn ) {
   11     my ($mod, $min) = @$h;
   12     warn "    ! $mod (we need version $min)\n";
   13   }
   14 }
   15 
   16 BEGIN {
   17   if ( ! eval "use Perl::OSType 1 (); 1" ) {
   18     print "*** BOOTSTRAPPING Perl::OSType ***\n";
   19     push @exit_warn, [ 'Perl::OSType', '1.00' ];
   20     delete $INC{'Perl/OSType.pm'};
   21     local @INC = @INC;
   22     push @INC, 'inc';
   23     eval "require Perl::OSType; 1"
   24       or die "BOOSTRAP FAIL: $@";
   25   }
   26   if ( ! eval "use version 0.87 (); 1" ) {
   27     print "*** BOOTSTRAPPING version ***\n";
   28     push @exit_warn, [ 'version', '0.87' ];
   29     delete $INC{'version.pm'};
   30     local @INC = @INC;
   31     push @INC, 'inc';
   32     eval "require MBVersion; 1"
   33       or die "BOOSTRAP FAIL: $@";
   34   }
   35   if ( ! eval "use Module::Metadata 1.000002 (); 1" ) {
   36     print "*** BOOTSTRAPPING Module::Metadata ***\n";
   37     push @exit_warn, [ 'Module::Metadata', '1.000002' ];
   38     delete $INC{'Module/Metadata.pm'};
   39     local @INC = @INC;
   40     push @INC, 'inc';
   41     eval "require Module::Metadata; 1"
   42       or die "BOOSTRAP FAIL: $@";
   43   }
   44 }
   45 
   46 1;
   47