IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16128


Ignore:
Timestamp:
Jan 17, 2008, 4:43:26 PM (18 years ago)
Author:
eugene
Message:

adding check,build for extlibs, extperl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r16124 r16128  
    1313$verbose = 0;
    1414
     15$extlibs = "none";
     16$extperl = "none";
     17
    1518@tARGV = ();
    1619for (; @ARGV > 0; ) {
     
    2326        shift; next;
    2427    }
     28    if ($ARGV[0] eq "-extlibs") {
     29        $extlibs = $ARGV[1];
     30        shift; shift; next;
     31    }
     32    if ($ARGV[0] eq "-extperl") {
     33        $extperl = $ARGV[1];
     34        shift; shift; next;
     35    }
    2536    if ($ARGV[0] eq "-clean") {
    2637        $clean = 1;
     38        shift; next;
     39    }
     40    if ($ARGV[0] eq "-extcheck") {
     41        $extlibs = "check";
     42        $extperl = "check";
     43        shift; next;
     44    }
     45    if ($ARGV[0] eq "-extbuild") {
     46        $extlibs = "build";
     47        $extperl = "build";
    2748        shift; next;
    2849    }
     
    118139    # use psconfig.csh to set needed build aliases
    119140
     141    if ($extlibs eq "check") {
     142        $status = vsystem ("pschecklibs");
     143        if ($status) { die "failed to find external libraries\n"; }
     144    }
     145    if ($extlibs eq "build") {
     146        $status = vsystem ("pschecklibs -build");
     147        if ($status) { die "failed to build external libraries\n"; }
     148    }
     149
     150    if ($extperl eq "check") {
     151        $status = vsystem ("pschecklperl");
     152        if ($status) { die "failed to find external perl modules\n"; }
     153    }
     154    if ($extperl eq "build") {
     155        $status = vsystem ("pscheckperl -build");
     156        if ($status) { die "failed to build external perl modules\n"; }
     157    }
     158
    120159    # set the psconfig version:
    121160    if ("$version" eq "") {
     
    221260        }
    222261
    223         if (! -e "Makefile") { &failure($cvsname[$i], "missing makefile"); }
     262        if (! -e "Makefile") { &failure($cvsname[$i], "missing makefile: do you need to run the -dev developer build?"); }
    224263
    225264        if ($clean) {
Note: See TracChangeset for help on using the changeset viewer.