IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2008, 10:49:34 AM (18 years ago)
Author:
Paul Price
Message:

Allowing multiple "force" builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/pschecklibs

    r18707 r19150  
    1010$version = "";
    1111$build = 0;
    12 $force = "";
     12%force;
    1313@tARGV = ();
    1414for (; @ARGV > 0; ) {
     
    2323    if ($ARGV[0] eq "-force") {
    2424        if (@ARGV < 2) { die "-force must be coupled to a library name\n"; }
    25         $force = $ARGV[1];
     25        $force{lc($ARGV[1])} = 1;
    2626        shift; shift; next;
    2727    }
     
    130130    if (($use_equals ne "Y") && ($use_equals ne "N")) { die "invalid value for use_equals field\n"; }
    131131
    132     if ($force ne "") {
    133         if ($force eq $name or (lc($force) eq "all" and lc($tarball) ne "none")) {
    134             &buildlib ($name, $tarball, $tardir, $use_equals, $configure_opts, $make_opts, $install_opts);
    135 #           exit 0;
    136         }
     132    if ((defined $force{lc($name)} or defined $force{'all'}) and lc($tarball) ne "none") {
     133        &buildlib ($name, $tarball, $tardir, $use_equals, $configure_opts, $make_opts, $install_opts);
     134#       exit 0;
    137135        next;
    138136    }
Note: See TracChangeset for help on using the changeset viewer.