IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20297


Ignore:
Timestamp:
Oct 21, 2008, 11:08:26 AM (18 years ago)
Author:
bills
Message:

complain if -force is used for an item that isn't in the list of libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/pschecklibs

    r19604 r20297  
    131131    if (($auto_force ne "Y") && ($auto_force ne "N")) { die "invalid value for auto_force field\n"; }
    132132
     133
    133134    if ((defined $force{lc($name)} or defined $force{'all'}) and lc($tarball) ne "none") {
     135        # remove it for the list so we can check for -force for a library
     136        # not in the list
    134137        &buildlib ($name, $tarball, $tardir, $configure_opts, $make_opts, $install_opts);
     138        $force{lc($name)} = undef;
    135139        next;
    136140    }
     
    180184    &buildlib ($name, $tarball, $tardir, $configure_opts, $make_opts, $install_opts);
    181185}
    182 if ($build) { exit 0; }
     186
     187my $bad_force;
     188foreach $k (keys %force) {
     189    print STDERR "\nERROR: -force used for $k which isn't in the list\n";
     190    $bad_force = 1;
     191}
     192if ($build) {
     193    if ($bad_force) {
     194        exit 1;
     195    }
     196    exit 0;
     197}
    183198print "\n";
    184199
Note: See TracChangeset for help on using the changeset viewer.