IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:39:02 AM (14 years ago)
Author:
eugene
Message:

add -no-as-needed and -debug-build options to psbuild; add -bootstrap current option; add more verbosity and debug options to pscheckmods; add -clean option to pscheckperl; set LDFLAGS with no-as-needed if we are using Ubuntu with gcc 4.6.3; update Module::Build to version 0.3601 (note: 0.40 requires updates to other modules); update Params:Validate to 0.96 to deal with change to "ref" command; update DBI and DBD:mysql to handle change of xcode namespace; use linker SEARCH_DIR and cpp include information to set hidden search paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/pscheckmods

    r31162 r34087  
    11#!/usr/bin/env perl
    22
     3$DEBUG = 0;
    34$VERBOSE = 0;
    45if (@ARGV > 2 && $ARGV[0] eq "-v") {
     
    1011if ($VERBOSE) { print STDERR "checking in @INC\n"; }
    1112
    12 # &detailed_require ($ARGV[0]);
     13if ($DEBUG) { &detailed_require ($ARGV[0]);}
    1314
    1415$x = eval "require $ARGV[0]; 1";
     
    1819    &detailed_require ($ARGV[0]);
    1920}
    20 if ($VERBOSE) { print "x: $x\n"; }
     21if ($VERBOSE) { print "result of require: $x\n"; }
    2122
    2223$version = eval "\$$ARGV[0]::VERSION";
     
    3435    $filename =~ s|::|/|g;
    3536    $filename = "$filename.pm";
    36     print "$filename\n";
     37    print "\ntesting : $filename\n" if $DEBUG;
    3738    if (exists $INC{$filename}) {
    3839        return 1 if $INC{$filename};
    39         die "Compilation failed in require";
    4040    }
    4141    my ($realfilename,$result);
     
    4343      foreach $prefix (@INC) {
    4444          $realfilename = "$prefix/$filename";
    45           print "$realfilename\n";
     45          print "real: $realfilename\n" if $DEBUG;
    4646          if (-f $realfilename) {
    4747              $INC{$filename} = $realfilename;
     48              print "calling 'do' on $realfilename\n" if $DEBUG;
    4849              $result = do $realfilename;
     50              print "result: $result\n" if $DEBUG;
    4951              last ITER;
    5052          }
     
    5355    }
    5456    if ($@) {
     57        print "$@" if $DEBUG;
    5558        $INC{$filename} = undef;
    5659        die $@;
    5760    } elsif (!$result) {
     61        print "no result\n" if $DEBUG;
    5862        delete $INC{$filename};
    5963        die "$filename did not return true value";
    6064    } else {
     65        print "done with detailed_require\n" if $DEBUG;
    6166        return $result;
    6267    }
Note: See TracChangeset for help on using the changeset viewer.