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/pscheckperl

    r28191 r34087  
    55$version = "";
    66$build = 0;
     7$clean = 0;
    78my %force;   # Names of module to force build
    89@tARGV = ();
     
    1415    if ($ARGV[0] eq "-build") {
    1516        $build = 1;
     17        shift; next;
     18    }
     19    if ($ARGV[0] eq "-clean") {
     20        $clean = 1;
    1621        shift; next;
    1722    }
     
    3237if ( @ARGV > 1) { &usage(); }
    3338
     39if ($build && $clean) {die "-build and -clean are incompatible\n";}
     40
    3441if ( @ARGV == 0) {
    3542    @list = <$tagsets/*.perl>;
     
    95102    # if ($modver eq "") { $modver = 0; }
    96103
     104    if ($clean) {
     105        ($tardir) = $tarball =~ m|(\S*).tar.gz|;
     106        $tardir = "../extperl/$tardir";
     107        if (-d $tardir) {
     108            print "remove tardir: $tardir\n";
     109            vsystem ("rm -rf $tardir");
     110        }
     111        next;
     112    }
     113   
    97114    system ("pscheckmods $module $modver");
    98115    if (($? == 0) and not defined $force{$module} and not defined $force{'all'}) {
     
    127144    if ($prompts eq "NONE") { $prompts = ""; }
    128145
    129     if (-e "Build.PL" and $module ne "Params::Validate" and $module ne "DateTime::TimeZone") {
     146    if (-e "Build.PL" and $module ne "DateTime::TimeZone") {
    130147        # vsystem("perl Build.PL --install_path lib=$perldir ");
    131148        vsystem("perl Build.PL --install_base $prefix $buildopts");
Note: See TracChangeset for help on using the changeset viewer.