IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2009, 10:49:49 AM (17 years ago)
Author:
eugene
Message:

update for svn: change cvsname to module; change location of extlibs and extperl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r19883 r21932  
    218218
    219219    $stop_now = 0;
    220     for ($i = 0; !$stop_now && ($i < @cvsname); $i++) {
    221         if (($stop ne "") && ($stop eq $cvsname[$i])) { $stop_now = 1; }
    222         if (($start ne "") && ($start ne $cvsname[$i])) { next; }
     220    for ($i = 0; !$stop_now && ($i < @module); $i++) {
     221        if (($stop ne "") && ($stop eq $module[$i])) { $stop_now = 1; }
     222        if (($start ne "") && ($start ne $module[$i])) { next; }
    223223        $start = "";
    224224
     
    227227        if ($do_build eq "N") { next; }
    228228
    229         $workdir = "../$cvsname[$i]";
     229        $workdir = "../$module[$i]";
    230230
    231231        # XXX need to grab current value for cleanup
    232         print "\n ** psbuild: $cvsname[$i] ** \n";
    233         print "\033]0; ** psbuild: $cvsname[$i] ** \007";
     232        print "\n ** psbuild: $module[$i] ** \n";
     233        print "\033]0; ** psbuild: $module[$i] ** \007";
    234234
    235235        if (!-d $workdir || !-r $workdir || !-x $workdir) {
    236             print STDERR "WARNING: no directory for component $cvsname[$i], skipping\n";
     236            print STDERR "WARNING: no directory for component $module[$i], skipping\n";
    237237            next;
    238238        }
     
    248248        if (-e "Build.PL") {
    249249            vsystem ("$psperlbuild");
    250             if ($?) { &failure($cvsname[$i], "failure in perl Build.PL"); }
     250            if ($?) { &failure($module[$i], "failure in perl Build.PL"); }
    251251
    252252            vsystem ("./Build");
    253             if ($?) { &failure($cvsname[$i], "failure in Build"); }
     253            if ($?) { &failure($module[$i], "failure in Build"); }
    254254
    255255            vsystem ("./Build install");
    256             if ($?) { &failure($cvsname[$i], "failure in Build install"); }
     256            if ($?) { &failure($module[$i], "failure in Build install"); }
    257257
    258258            next;
     
    273273            $skip_configure = 1;
    274274            vsystem ("$psautogen $psopts");
    275             if ($?) { &failure($cvsname[$i], "failure in psautogen"); }
     275            if ($?) { &failure($module[$i], "failure in psautogen"); }
    276276        }
    277277
    278278        if ($rebuild_this && -e "configure" && !$skip_configure) {
    279279            vsystem ("$psconfigure $psopts");
    280             if ($?) { &failure($cvsname[$i], "failure in psconfigure"); }
    281         }
    282 
    283         if (! -e "Makefile") { &failure($cvsname[$i], "missing makefile: do you need to run the -dev developer build?"); }
     280            if ($?) { &failure($module[$i], "failure in psconfigure"); }
     281        }
     282
     283        if (! -e "Makefile") { &failure($module[$i], "missing makefile: do you need to run the -dev developer build?"); }
    284284
    285285        if ($clean) {
    286286            vsystem ("make clean");
    287             if ($?) { &failure($cvsname[$i], "failure in make clean"); }
     287            if ($?) { &failure($module[$i], "failure in make clean"); }
    288288        }
    289289
    290290        vsystem ("make");
    291         if ($?) { &failure($cvsname[$i], "failure in make"); }
     291        if ($?) { &failure($module[$i], "failure in make"); }
    292292
    293293        vsystem ("make install");
    294         if ($?) { &failure($cvsname[$i], "failure in make install"); }
    295 
    296         print "*** done with $cvsname[$i] ***\n";
     294        if ($?) { &failure($module[$i], "failure in make install"); }
     295
     296        print "*** done with $module[$i] ***\n";
    297297
    298298      success:
     
    359359sub load_distfile {
    360360    # open and read the distribution file
    361     # results go into @cvsname, @branchtag, @branchver, @mode
     361    # results go into @module, @branchtag, @branchver, @mode
    362362    open (FILE, $distribution) || die "ERROR: can't open distribution file $distribution\n";
    363363    @list = <FILE>;
     
    365365
    366366    @mode = ();
    367     @cvsname = ();
     367    @module = ();
    368368    @branchtag = ();
    369369    @branchver = ();
     
    374374        if ($line =~ m|^\s*\#|) { next; }
    375375
    376         ($mode, $cvsname, $branchtag, $branchver) = split (" ", $line);
    377 
    378         if ($cvsname eq "") { die "missing module name\n"; }
     376        ($mode, $module, $branchtag, $branchver) = split (" ", $line);
     377
     378        if ($module eq "") { die "missing module name\n"; }
    379379
    380380        ($do_tag, $do_build, $do_package, $do_update) = $mode =~ m|(\S)(\S)(\S)(\S)|;
     
    385385
    386386        if ($verbose) { print "tag: $do_tag, build: $do_build, package: $do_package, update: $do_update "; }
    387         if ($verbose) { print "module: $cvsname, branchtag: $branchtag, branchver: $branchver \n"; }
     387        if ($verbose) { print "module: $module, branchtag: $branchtag, branchver: $branchver \n"; }
    388388
    389389        push @mode, $mode;
    390         push @cvsname, $cvsname;
     390        push @module, $module;
    391391        push @branchtag, $branchtag;
    392392        push @branchver, $branchver;
Note: See TracChangeset for help on using the changeset viewer.