IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 22419


Ignore:
Timestamp:
Feb 22, 2009, 10:26:32 PM (17 years ago)
Author:
beaumont
Message:

Added pmStackVisual file. Still learning ins and outs of svn

Location:
branches/cnb_branch_20090215
Files:
2 added
25 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branch_20090215/DataStore/Todo

    r21495 r22419  
    22
    33- Nothing yet
    4 
    5 
  • branches/cnb_branch_20090215/doc/design/remote.copy.txt

    r21536 r22419  
    5555rc_manifest:
    5656
    57 STAGE:
    58 ID:
     57STAGE: chip
     58ID: nnnnn
    5959DB_VERSION : version number of source database
    6060DB_DATA : filename.sql
  • branches/cnb_branch_20090215/ippScripts/scripts/register_imfile.pl

    r20118 r22419  
    1717use Storable qw(freeze thaw);
    1818use File::Basename qw( basename);
    19 use IPC::Cmd 0.36 qw( can_run run );
     19use IPC::Run qw( harness run );
    2020use PS::IPP::Config 1.01 qw( :standard );
    2121use PS::IPP::Metadata::Config;
    22 
    23 my $PI = 3.141592653589793238462643383279502;
     22use Math::Trig;
    2423
    2524my $ipprc = PS::IPP::Config->new(); # IPP configuration
     
    5857# Look for programs we need
    5958my $missing_tools;
    60 my $regtool = can_run('regtool') or (warn "Can't find regtool" and $missing_tools = 1);
    61 my $ppStats = can_run('ppStats') or (warn "Can't find ppStats" and $missing_tools = 1);
    62 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
     59my $regtool = `which regtool` or (warn "Can't find regtool" and $missing_tools = 1);
     60my $ppStats = `which ppStats` or (warn "Can't find ppStats" and $missing_tools = 1);
     61my $ppStatsFromMetadata = `which ppStatsFromMetadata` or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
     62chomp $regtool;
     63chomp $ppStats;
     64chomp $ppStatsFromMetadata;
     65
    6366
    6467if ($missing_tools) {
     
    8083# Run ppStats on the input file
    8184{
    82     my $command = "$ppStats $uri -recipe PPSTATS $RECIPE -level | $ppStatsFromMetadata - - REGISTER_IMFILE"; # Command to run ppStats and ppStatsFromMetadata
    83     $command .= " -dbname $dbname" if defined $dbname;
    84     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    85         cache_run(command => $command, verbose => $verbose);
    86     unless ($success) {
    87         $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    88         &my_die ("Unable to perform ppStats on exposure id $exp_id: $error_code", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $error_code);
    89     }
    90     foreach my $line (@$stdout_buf) {
    91         $cmdflags .= " $line";
    92     }
    93     chomp $cmdflags;
     85    my $command1 = "$ppStats $uri -recipe PPSTATS $RECIPE -level";
     86    my $command2 = "$ppStatsFromMetadata - - REGISTER_IMFILE";
     87
     88    # Since there are no spaces in the arguments, we can get away with this:
     89    my @command1 = split(/ /, $command1);
     90    my @command2 = split(/ /, $command2);
     91
     92    # Run ppStats
     93    my ($in1, $out1, $err1);    # Buffers for ppStats
     94    my $h1 = harness \@command1, \$in1, \$out1, \$err1;
     95    print "[Running $command1]\n";
     96    my $result1 = run $h1;
     97    print $out1;
     98    print $err1;
     99    &my_die("Unable to perform ppStats on exposure id $exp_id: " . $h1->result(), $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $h1->result() ) unless $result1;
     100
     101    print "[Running " . join(' ', @command2) . "]\n";
     102    my ($out2, $err2);          # Buffers for ppStatsFromMetadata
     103    my $h2 = harness \@command2, \$out1, \$out2, \$err2;
     104    print "[Running $command2]\n";
     105    my $result2 = run $h2;
     106    print $out2;
     107    print $err2;
     108    &my_die("Unable to perform ppStatsFromMetadata on exposure id $exp_id: " . $h2->result(), $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $h2->result() ) unless $result2;
     109    chomp $out2;
     110    $cmdflags = $out2;
    94111}
    95112
     
    123140# if the needed data is available, pass it to sunmoon:
    124141if ($longitude && $latitude && $ra && $dec && $dateobs) {
    125    
    126     $longitude *= 12.0 / $PI; # longitude is reported in West radians; sunmoon wants it in West Hours
    127     $latitude *= 180.0 / $PI; # latitude is reported in North radians; sunmoon wants it in North Degrees
    128     $ra *= 180.0 / $PI; # ra is reported in radians; sunmoon wants it in degrees
    129     $dec *= 180.0 / $PI; # dec is reported in radians; sunmoon wants it in degrees
     142
     143    $longitude *= 12.0 / pi; # longitude is reported in West radians; sunmoon wants it in West Hours
     144    $latitude *= 180.0 / pi; # latitude is reported in North radians; sunmoon wants it in North Degrees
     145    $ra *= 180.0 / pi; # ra is reported in radians; sunmoon wants it in degrees
     146    $dec *= 180.0 / pi; # dec is reported in radians; sunmoon wants it in degrees
    130147
    131148    my $sunmoon_cmd = "sunmoon -latitude $latitude -longitude $longitude -elevation $elevation $dateobs $ra $dec";
     
    137154
    138155    if ($?) {
    139         warn ("failure running $sunmoon_cmd, not supplying\n");
     156        warn ("failure running $sunmoon_cmd, not supplying\n");
    140157    } else {
    141         $command .= " $sunmoon_data";
     158        $command .= " $sunmoon_data";
    142159    }
    143160}
  • branches/cnb_branch_20090215/ippTests/buildtest/ippcheck.003

    r20569 r22419  
    4545writeStatus "Remove old ipp build status: " $?
    4646
    47 #cvs checkout
    48 CVSROOT="giebink@cvs.pan-starrs.ifa.hawaii.edu:/cvsroot/pan-starrs"
    49 export CVSROOT
    50 echo "CVSROOT =" $CVSROOT >> $logfile
    51 writeStep "Begin cvs co ipp"
    52 cvs co ipp >> $buildfile 2>> $errorfile
    53 writeStatus "CVS ipp checkout status: " $?
     47#svn checkout
     48writeStep "Begin svn co ipp"
     49svn co http://svn.pan-starrs.ifa.hawaii.edu/repo/ipp/ ipp >> $buildfile 2>> $errorfile
     50writeStatus "SVN ipp checkout status: " $?
    5451
    5552#remove old C libraries and Perl modules
     
    6360writeStatus "Remove old extperl dir status: " $?
    6461
    65 #cvs checkout extlibs
    66 writeStep "Begin cvs co extlibs"
    67 cvs co extlibs>> $buildfile 2>> $errorfile
    68 writeStatus "CVS extlibs checkout status: " $?
     62#svn checkout extlibs
     63writeStep "Begin svn co extlibs"
     64svn co http://svn.pan-starrs.ifa.hawaii.edu/repo/ipp/extlibs/ ext >> $buildfile 2>> $errorfile
     65writeStatus "SVN extlibs checkout status: " $?
    6966
    70 #cvs checkout extperl
    71 writeStep "Begin cvs co extperl"
    72 cvs co extperl>> $buildfile 2>> $errorfile
    73 writeStatus "CVS extperl checkout status: " $?
     67#svn checkout extperl
     68writeStep "Begin svn co extperl"
     69svn co http://svn.pan-starrs.ifa.hawaii.edu/repo/ipp/extperl/ extperl >> $buildfile 2>> $errorfile
     70writeStatus "SVN extperl checkout status: " $?
    7471
    7572#psconfig bootstrap
     
    106103
    107104#check psbuild
    108 writeStep "Running psbuild -profile -dev"
    109 psbuild -profile -dev >> $buildfile 2>> $errorfile
     105writeStep "Running psbuild -dev"
     106psbuild -dev >> $buildfile 2>> $errorfile
    110107writeStatus "Run psbuild status: " $?
    111108
     
    115112
    116113writeStep "Building ipp configuration: configure --prefix='/data/ipp003.0/ippTests/psconfig/default.lin64'"
    117 configure --prefix='/data/ipp003.0/ippTests/psconfig/default.lin64' >> $buildfile 2>> $errorfile
     114configure --prefix='/data/ipp003.0/ippTests/psconfig/default.lin64' --enable-tests >> $buildfile 2>> $errorfile
    118115writeStatus "ipp configure status: " $?
    119116
  • branches/cnb_branch_20090215/ppStack/src/ppStackArguments.c

    r22214 r22419  
    256256    valueArgRecipeStr(arguments, recipe, "-psf-model", "PSF.MODEL", recipe);
    257257
    258     if (psMetadataLookupBool(NULL, arguments, "-viusal") {
     258    if (psMetadataLookupBool(NULL, arguments, "-viusal")) {
    259259        pmVisualSetVisual(true);
    260260    }
  • branches/cnb_branch_20090215/ppSub/src/ppSub.h

    r21536 r22419  
    66 *
    77 *  @author IfA
     8<<<<<<< .working
    89 *  @version $Revision: 1.6.2.1 $ $Name: not supported by cvs2svn $
    910 *  @date $Date: 2009-02-19 17:59:49 $
     11=======
     12 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2009-02-18 00:31:20 $
     14>>>>>>> .merge-right.r22214
    1015 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1116 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubArguments.c

    r21536 r22419  
    66 *
    77 *  @author IfA
     8<<<<<<< .working
    89 *  @version $Revision: 1.58.2.1 $ $Name: not supported by cvs2svn $
    910 *  @date $Date: 2009-02-19 17:59:49 $
     11=======
     12 *  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2009-02-18 00:31:20 $
     14>>>>>>> .merge-right.r22214
    1015 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1116 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubCamera.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.33.2.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:49 $
     8 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubLoop.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.23.2.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:49 $
     8 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubMakePSF.c

    r21536 r22419  
    66 *
    77 *  @author IfA
     8<<<<<<< .working
    89 *  @version $Revision: 1.2.4.1 $ $Name: not supported by cvs2svn $
    910 *  @date $Date: 2009-02-19 17:59:49 $
     11=======
     12 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2009-02-18 00:31:20 $
     14>>>>>>> .merge-right.r22214
    1015 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1116 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubMatchPSFs.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.2.4.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:49 $
     8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubReadout.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.112.2.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:49 $
     8 *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubReadoutPhotometry.c

    r21536 r22419  
    66 *
    77 *  @author IfA
     8<<<<<<< .working
    89 *  @version $Revision: 1.3.4.1 $ $Name: not supported by cvs2svn $
    910 *  @date $Date: 2009-02-19 17:59:49 $
     11=======
     12 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2009-02-18 00:31:20 $
     14>>>>>>> .merge-right.r22214
    1015 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1116 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubReadoutSubtract.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.4.4.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:49 $
     8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubReadoutUpdate.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.3.4.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:50 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubSetMasks.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.2.4.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:50 $
     8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubVarianceFactors.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.3.4.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:50 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/ppSub/src/ppSubVersion.c

    r21536 r22419  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.3.2.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:50 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-18 00:31:20 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
  • branches/cnb_branch_20090215/psModules/src/extras/pmVisual.c

    r21536 r22419  
    1818#include "pmHDU.h"
    1919#include "pmFPA.h"
     20#include "pmFPAfile.h"
    2021#include "pmAstrometryObjects.h"
     22#include "pmSubtractionStamps.h"
     23
    2124#include "pmFPAExtent.h"
    2225
     
    2831# define KAPAY 700
    2932
     33#include "pmAstrometryVisual.h"
     34#include "pmSubtractionVisual.h"
     35#include "pmStackVisual.h"
     36
    3037static bool isVisual = false;
    3138
     
    4047
    4148bool pmVisualClose(void) {
    42     pmAstrometryVisualClose();
     49    pmAstromVisualClose();
    4350    pmSubtractionVisualClose();
    4451    pmStackVisualClose();
  • branches/cnb_branch_20090215/psconfig/psbuild

    r19883 r22419  
    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;
  • branches/cnb_branch_20090215/psconfig/pschecklibs

    r20298 r22419  
    232232    print "psconfigure: $psconfigure";
    233233
    234     ## try to build the module from ../../extlibs/$tarball
     234    ## try to build the module ../extlibs/$tarball
    235235
    236236    # go to extlibs and unpack the tarball
    237     chdir "../../extlibs";
     237    chdir "../extlibs";
    238238
    239239    print "extract $name from $tarball\n";
  • branches/cnb_branch_20090215/psconfig/pscheckperl

    r17490 r22419  
    9090    }
    9191
    92     # try to build the module from ../../extperl/Module.*.tar.gz
    93     chdir "../../extperl" or die "Unable to find ../../extperl directory.";
     92    # try to build the module from ../extperl/Module.*.tar.gz
     93    chdir "../extperl" or die "Unable to find ../extperl directory.";
    9494
    9595    print "extract $module from $tarball\n";
  • branches/cnb_branch_20090215/psconfig/psdist

    r18806 r22419  
    100100sub difflist {
    101101
    102     for ($i = 0; $i < @cvsname; $i++) {
     102    for ($i = 0; $i < @module; $i++) {
    103103        # the base component cannot be rdiffed
    104         print STDERR "--- $cvsname[$i] ---\n";
    105         if ($cvsname[$i] eq "base") { next; }
     104        print STDERR "--- $module[$i] ---\n";
     105        if ($module[$i] eq "base") { next; }
    106106        if ($tag[$i] eq "") { next; }
    107         &vsystem ("cvs -q rdiff -s -r $tag[$i] $cvsname[$i]");
     107        &vsystem ("cvs -q rdiff -s -r $tag[$i] $module[$i]");
    108108        print STDERR "\n\n";
    109109    }
     
    114114    print STDERR "setting tags\n";
    115115    if ($settag_mode eq "") { die "-tag mode is not set\n"; }
    116     for ($i = 0; $i < @cvsname; $i++) {
    117         if (($module ne "") && ($module ne $cvsname[$i])) { next; }
     116    for ($i = 0; $i < @module; $i++) {
     117        if (($module ne "") && ($module ne $module[$i])) { next; }
    118118        ## XXX make this backwards compatible with pre-ipp-2.4 releases (with four, not five, entries)?
    119119        ($do_tag, $do_build, $do_dist, $do_update, $dev_build) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)(\S)|;
    120120        if ($do_tag eq "N") {
    121             push @remind, $cvsname[$i];
    122             next;
    123         }
    124         if ($branchtag[$i] eq "") { die "branch tag missing for $cvsname[$i]\n"; }
     121            push @remind, $module[$i];
     122            next;
     123        }
     124        if ($branchtag[$i] eq "") { die "branch tag missing for $module[$i]\n"; }
    125125        if ($branchver[$i] eq "") { die "branch tag version missing\n"; }
    126126        $tag = "$branchtag[$i]$branchver[$i]";
    127127        if ($settag_mode eq "branch") {
    128             &vsystem ("cvs -q rtag -b $branchtag[$i] $cvsname[$i]");
     128            &vsystem ("cvs -q rtag -b $branchtag[$i] $module[$i]");
    129129            next;
    130130        }
    131131        if ($settag_mode eq "dev") {
    132             &vsystem ("cvs -q rtag $tag $cvsname[$i]");
     132            &vsystem ("cvs -q rtag $tag $module[$i]");
    133133            next;
    134134        }
    135135        if ($settag_mode eq "rev") {
    136             &vsystem ("cvs -q rtag -r $branchtag[$i] $tag $cvsname[$i]");
     136            &vsystem ("cvs -q rtag -r $branchtag[$i] $tag $module[$i]");
    137137            next;
    138138        }
     
    152152    chdir "..";
    153153
    154     for ($i = 0; $i < @cvsname; $i++) {
    155         if (($module ne "") && ($module ne $cvsname[$i])) { next; }
     154    for ($i = 0; $i < @module; $i++) {
     155        if (($module ne "") && ($module ne $module[$i])) { next; }
    156156        ($do_tag, $do_build, $do_dist, $do_update) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)|;
    157157        if ($do_update eq "N") {
    158             push @remind, $cvsname[$i];
     158            push @remind, $module[$i];
    159159            next;
    160160        }
    161161        # only update modules with tags
    162         if ($branchtag[$i] eq "") { die "branch tag missing for $cvsname[$i]\n"; }
     162        if ($branchtag[$i] eq "") { die "branch tag missing for $module[$i]\n"; }
    163163        if ($branchver[$i] eq "") { die "branch tag version missing\n"; }
    164164        $tag = "$branchtag[$i]$branchver[$i]";
    165165        if ($update_mode eq "tags") {
    166             &vsystem ("cvs -q co -r $tag $cvsname[$i]");
     166            &vsystem ("cvs -q co -r $tag $module[$i]");
    167167            next;
    168168        }
    169169        if ($update_mode eq "head") {
    170             &vsystem ("cvs -q co -A $cvsname[$i]");
     170            &vsystem ("cvs -q co -A $module[$i]");
    171171            next;
    172172        }
     
    187187    mkdir $distribution;
    188188    chdir $distribution;
    189     for ($i = 0; $i < @cvsname; $i++) {
    190         if (($module ne "") && ($module ne $cvsname[$i])) { next; }
     189    for ($i = 0; $i < @module; $i++) {
     190        if (($module ne "") && ($module ne $module[$i])) { next; }
    191191        ($do_tag, $do_build, $do_dist, $do_update) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)|;
    192192        if ($do_dist eq "N") { next; }
    193193
    194         if ($branchtag[$i] eq "") { die "branch tag missing for $cvsname[$i]\n"; }
     194        if ($branchtag[$i] eq "") { die "branch tag missing for $module[$i]\n"; }
    195195        if ($branchver[$i] eq "") { die "branch tag version missing\n"; }
    196196        $tag = "$branchtag[$i]$branchver[$i]";
    197197
    198198        if ($mkdist_head) {
    199             &vsystem ("cvs co $cvsname[$i]");
     199            &vsystem ("cvs co $module[$i]");
    200200            if ($status) { die "error running cvs"; }
    201201        } else {
    202             &vsystem ("cvs co -r $tag $cvsname[$i]");
     202            &vsystem ("cvs co -r $tag $module[$i]");
    203203            if ($status) { die "error running cvs"; }
    204204        }
     
    218218    # run autogen.sh, if present, to build a configure script
    219219    chdir $distribution;
    220     for ($i = 0; $i < @cvsname; $i++) {
    221         if (($module ne "") && ($module ne $cvsname[$i])) { next; }
     220    for ($i = 0; $i < @module; $i++) {
     221        if (($module ne "") && ($module ne $module[$i])) { next; }
    222222        ($do_tag, $do_build, $do_dist, $do_update) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)|;
    223223        if ($do_dist eq "N") { next; }
    224224
    225         if (! -e "$cvsname[$i]/autogen.sh" || -e "$cvsname[$i]/Build.PL" ) { next; }
    226         chdir $cvsname[$i];
     225        if (! -e "$module[$i]/autogen.sh" || -e "$module[$i]/Build.PL" ) { next; }
     226        chdir $module[$i];
    227227
    228228        vsystem ("./autogen.sh --no-configure");
     
    255255sub load_distfile {
    256256    # open and read the distribution file
    257     # results go into @cvsname, @branchtag, @branchver, @mode
     257    # results go into @module, @branchtag, @branchver, @mode
    258258    $file = "$tagsets/$ARGV[0].dist";
    259259    open (FILE, $file) || die "ERROR: can't open distribution file $file\n";
     
    262262
    263263    @mode = ();
    264     @cvsname = ();
     264    @module = ();
    265265    @branchtag = ();
    266266    @branchver = ();
     
    271271        if ($line =~ m|^\s*\#|) { next; }
    272272
    273         ($mode, $cvsname, $branchtag, $branchver) = split (" ", $line);
    274 
    275         if ($cvsname eq "") { die "missing module name\n"; }
     273        ($mode, $my_module, $branchtag, $branchver) = split (" ", $line);
     274
     275        if ($my_module eq "") { die "missing module name\n"; }
    276276
    277277        ($do_tag, $do_build, $do_dist, $do_update) = $mode =~ m|(\S)(\S)(\S)(\S)|;
     
    281281        if (($do_update ne "Y") && ($do_update ne "N")) { die "invalid tag option $do_update\n"; }
    282282
    283         # print "module: $cvsname, branchtag: $branchtag, branchver: $branchver ";
     283        # print "module: $my_module, branchtag: $branchtag, branchver: $branchver ";
    284284        # print "tag: $do_tag, build: $do_build, dist: $do_dist, update: $do_update\n";
    285285
    286286        push @mode, $mode;
    287         push @cvsname, $cvsname;
     287        push @module, $my_module;
    288288        push @branchtag, $branchtag;
    289289        push @branchver, $branchver;
  • branches/cnb_branch_20090215/psconfig/tagsets/ipp-2.7.dist

    r21343 r22419  
    66# |||||-- build for developer?
    77# |||||
    8 # |||||  CVS module             CVS branch tag   CVS branch version   
     8# |||||  module                 branch name      tag version   
    99# |||||
    1010  YYNNY  Ohana                  ipp-2-7          -0
  • branches/cnb_branch_20090215/psconfig/tagsets/ipp-2.7.perl

    r21536 r22419  
    11# NN    Name                           Tarball                                  Version        Optional Responses
    22  00    Getopt::Long                   Getopt-Long-2.36.tar.gz                  2.3            n
    3   00    Module::Build                  Module-Build-0.2806.tar.gz               0.2806         
    4   01    ExtUtils::MakeMaker            ExtUtils-MakeMaker-6.31.tar.gz           0         
    5   02    Params::Validate               Params-Validate-0.87-eam-v1.tar.gz       0.77         
     3  00    Module::Build                  Module-Build-0.2806.tar.gz               0.2806
     4  01    ExtUtils::MakeMaker            ExtUtils-MakeMaker-6.31.tar.gz           0
     5  02    Params::Validate               Params-Validate-0.91.tar.gz       0.77
    66#  02    Apache::Test                   Apache-Test-1.29.tar.gz                  1.29
    7   03    DateTime::TimeZone             DateTime-TimeZone-0.59.tar.gz            0         
    8   04    DateTime::Locale               DateTime-Locale-0.33.tar.gz              0         
    9   05    Time::Local                    Time-Local-1.17.tar.gz                   0         
    10   06    DateTime                       DateTime-0.36.tar.gz                     0         
    11   07    MIME::Base64                   MIME-Base64-3.07.tar.gz                  0         
    12   08    IO::Compress::Base             IO-Compress-Base-2.003.tar.gz            0         
    13   09    Compress::Raw::Zlib            Compress-Raw-Zlib-2.003.tar.gz           0         
    14   10    Class::Factory::Util           Class-Factory-Util-1.6.tar.gz            0         
    15   11    DateTime::Format::Strptime     DateTime-Format-Strptime-1.0700.tar.gz   0         
    16   12    Net::Domain::TLD               Net-Domain-TLD-1.65.tar.gz               0         
    17   13    Sub::Uplevel                   Sub-Uplevel-0.14.tar.gz                  0         
    18   14    HTML::Tagset                   HTML-Tagset-3.10.tar.gz                  0         
    19   15    Digest                         Digest-1.15.tar.gz                       0         
    20   16    IO::Compress::Zlib::Extra      IO-Compress-Zlib-2.003.tar.gz            0                   
    21   17    version                        version-0.70.tar.gz                      0
    22   18    Text::Balanced                 Text-Balanced-v2.0.0.tar.gz              0           
    23   19    DateTime::Format::Builder      DateTime-Format-Builder-0.7807.tar.gz    0           
    24   20    ExtUtils::Manifest             ExtUtils-Manifest-1.51.tar.gz            0           
    25   21    URI                            URI-1.35.tar.gz                          1.30       
    26   22    Data::Validate::Domain         Data-Validate-Domain-0.05.tar.gz         0           
    27   23    Test::Exception                Test-Exception-0.24.tar.gz               0           
    28   24    Tree::DAG_Node                 Tree-DAG_Node-1.05.tar.gz                0           
    29   25    Array::Compare                 Array-Compare-1.13.tar.gz                0
    30   26    HTML::Parser                   HTML-Parser-3.56.tar.gz                  0           
    31   27    Digest::MD5                    Digest-MD5-2.36.tar.gz                   0           
    32   28    Net::FTP                       libnet-1.19.tar.gz                       0           
    33   29    Compress::Zlib                 Compress-Zlib-2.003.tar.gz               0           
    34   30    Locale::Maketext::Simple       Locale-Maketext-Simple-0.18.tar.gz       0           
    35   31    Parse::RecDescent              Parse-RecDescent-1.94.tar.gz             1.94       
    36   32    Class::Accessor                Class-Accessor-0.30.tar.gz               0.19
    37   33    DateTime::Format::ISO8601      DateTime-Format-ISO8601-0.0403.tar.gz    0.0402
    38   34    CGI                            CGI.pm-3.25.tar.gz                       3             
    39   35    Test::Cmd                      Test-Cmd-1.05.tar.gz                     1.05       
    40   36    Net::HTTPServer                Net-HTTPServer-1.1.1.tar.gz              1.1.1       
    41   37    LWP                            libwww-perl-5.805.tar.gz                 0
    42   38    Digest::MD5::File              Digest-MD5-File-0.05.tar.gz              0.03
    43   39    File::Temp                     File-Temp-0.18.tar.gz                    0.16
    44   40    Data::Validate::URI            Data-Validate-URI-0.01.tar.gz            0.01
    45   41    Test::Warn                     Test-Warn-0.08.tar.gz                    0           
    46   42    YAML                           YAML-0.62.tar.gz                         0.58           y
    47   43    Module::Load                   Module-Load-0.10.tar.gz                  0           
    48   44    Params::Check                  Params-Check-0.25.tar.gz                 0           
    49   45    Template                       Template-Toolkit-2.16.tar.gz             0              n,n
    50   46    Statistics::Descriptive        Statistics-Descriptive-2.6.tar.gz        2.6
    51   47    Storable                       Storable-2.15.tar.gz                     0           
    52   48    IO::String                     IO-String-1.08.tar.gz                    0           
    53   49    Date::Parse                    TimeDate-1.16.tar.gz                     0           
    54   50    Digest::SHA1                   Digest-SHA1-2.11.tar.gz                  0           
    55   51    DB_File                        DB_File-1.814.tar.gz                     0           
    56   52    File::NFSLock                  File-NFSLock-1.20.tar.gz                 0           
    57   53    Heap                           Heap-0.71.tar.gz                         0           
    58   54    Module::Load::Conditional      Module-Load-Conditional-0.16.tar.gz      0           
    59   55    IPC::Run                       IPC-Run-0.80.tar.gz                      0           
    60   56    Cache                          Cache-2.04.tar.gz                        0
    61   57    IPC::Cmd                       IPC-Cmd-0.36.tar.gz                      0.36       
     7  03    DateTime::TimeZone             DateTime-TimeZone-0.59.tar.gz            0
     8  04    DateTime::Locale               DateTime-Locale-0.33.tar.gz              0
     9  05    Time::Local                    Time-Local-1.17.tar.gz                   0
     10  06    DateTime                       DateTime-0.36.tar.gz                     0
     11  07    MIME::Base64                   MIME-Base64-3.07.tar.gz                  0
     12  08    IO::Compress::Base             IO-Compress-Base-2.003.tar.gz            0
     13  09    Compress::Raw::Zlib            Compress-Raw-Zlib-2.003.tar.gz           0
     14  10    Class::Factory::Util           Class-Factory-Util-1.6.tar.gz            0
     15  11    DateTime::Format::Strptime     DateTime-Format-Strptime-1.0700.tar.gz   0
     16  12    Net::Domain::TLD               Net-Domain-TLD-1.65.tar.gz               0
     17  13    Sub::Uplevel                   Sub-Uplevel-0.14.tar.gz                  0
     18  14    HTML::Tagset                   HTML-Tagset-3.10.tar.gz                  0
     19  15    Digest                         Digest-1.15.tar.gz                       0
     20  16    IO::Compress::Zlib::Extra      IO-Compress-Zlib-2.003.tar.gz            0
     21  17    version                        version-0.70.tar.gz                      0
     22  18    Text::Balanced                 Text-Balanced-v2.0.0.tar.gz              0
     23  19    DateTime::Format::Builder      DateTime-Format-Builder-0.7807.tar.gz    0
     24  20    ExtUtils::Manifest             ExtUtils-Manifest-1.51.tar.gz            0
     25  21    URI                            URI-1.35.tar.gz                          1.30
     26  22    Data::Validate::Domain         Data-Validate-Domain-0.05.tar.gz         0
     27  23    Test::Exception                Test-Exception-0.24.tar.gz               0
     28  24    Tree::DAG_Node                 Tree-DAG_Node-1.05.tar.gz                0
     29  25    Array::Compare                 Array-Compare-1.13.tar.gz                0
     30  26    HTML::Parser                   HTML-Parser-3.56.tar.gz                  0
     31  27    Digest::MD5                    Digest-MD5-2.36.tar.gz                   0
     32  28    Net::FTP                       libnet-1.19.tar.gz                       0
     33  29    Compress::Zlib                 Compress-Zlib-2.003.tar.gz               0
     34  30    Locale::Maketext::Simple       Locale-Maketext-Simple-0.18.tar.gz       0
     35  31    Parse::RecDescent              Parse-RecDescent-1.94.tar.gz             1.94
     36  32    Class::Accessor                Class-Accessor-0.30.tar.gz               0.19
     37  33    DateTime::Format::ISO8601      DateTime-Format-ISO8601-0.06.tar.gz      0.06
     38  34    CGI                            CGI.pm-3.25.tar.gz                       3
     39  35    Test::Cmd                      Test-Cmd-1.05.tar.gz                     1.05
     40  36    Net::HTTPServer                Net-HTTPServer-1.1.1.tar.gz              1.1.1
     41  37    LWP                            libwww-perl-5.805.tar.gz                 0
     42  38    Digest::MD5::File              Digest-MD5-File-0.05.tar.gz              0.03
     43  39    File::Temp                     File-Temp-0.18.tar.gz                    0.16
     44  40    Data::Validate::URI            Data-Validate-URI-0.01.tar.gz            0.01
     45  41    Test::Warn                     Test-Warn-0.08.tar.gz                    0
     46  42    YAML                           YAML-0.62.tar.gz                         0.58           y
     47  43    Module::Load                   Module-Load-0.10.tar.gz                  0
     48  44    Params::Check                  Params-Check-0.25.tar.gz                 0
     49  45    Template                       Template-Toolkit-2.16.tar.gz             0              n,n
     50  46    Statistics::Descriptive        Statistics-Descriptive-2.6.tar.gz        2.6
     51  47    Storable                       Storable-2.15.tar.gz                     0
     52  48    IO::String                     IO-String-1.08.tar.gz                    0
     53  49    Date::Parse                    TimeDate-1.16.tar.gz                     0
     54  50    Digest::SHA1                   Digest-SHA1-2.11.tar.gz                  0
     55  51    DB_File                        DB_File-1.814.tar.gz                     0
     56  52    File::NFSLock                  File-NFSLock-1.20.tar.gz                 0
     57  53    Heap                           Heap-0.71.tar.gz                         0
     58  54    Module::Load::Conditional      Module-Load-Conditional-0.16.tar.gz      0
     59  55    IPC::Run                       IPC-Run-0.80.tar.gz                      0
     60  56    Cache                          Cache-2.04.tar.gz                        0
     61  57    IPC::Cmd                       IPC-Cmd-0.36.tar.gz                      0.36
    6262  58    SOAP::Lite                     SOAP-Lite-0.69.tar.gz                    0              yes,yes,no
    6363  59    Log::Log4perl                  Log-Log4perl-1.10.tar.gz                 0
     
    6767  63    File::Find::Rule               File-Find-Rule-0.30.tar.gz               0.30
    6868  64    Astro::FITS::CFITSIO           Astro-FITS-CFITSIO-1.05.tar.gz           0
    69   65    Test::More                     Test-Simple-0.74.tar.gz                  0.49
    70 #  66    Apache::DBI                   Apache-DBI-1.06.tar.gz                   0
    71 #  67    Apache2::SOAP                 Apache2-SOAP-0.72.tar.gz                 0
    72   68    Test::URI                      Test-URI-1.08.tar.gz                     0
     69  65    Test::More                     Test-Simple-0.74.tar.gz                  0.49
     70#  66    Apache::DBI                   Apache-DBI-1.06.tar.gz                   0
     71#  67    Apache2::SOAP                 Apache2-SOAP-0.72.tar.gz                 0
     72  68    Test::URI                      Test-URI-1.08.tar.gz                     0
    7373#  69    Sys::Statistics::Linux::DiskUsage Sys-Statistics-Linux-0.26.tar.gz      0
    74 #  70    Config::YAML                  Config-YAML-1.42.tar.gz                  0
    75 #  72    File::ExtAttr                 File-ExtAttr-1.07.tar.gz                 0
    76   73    DBI                            DBI-1.601.tar.gz                         0
    77   71    DBD::mysql                     DBD-mysql-4.006.tar.gz                   0
    78 #  74    Net::Server::Daemonize                Net-Server-0.97.tar.gz                   0.05
     74#  70    Config::YAML                  Config-YAML-1.42.tar.gz                  0
     75#  72    File::ExtAttr                 File-ExtAttr-1.07.tar.gz                 0
     76  73    DBI                            DBI-1.601.tar.gz                         0
     77  71    DBD::mysql                     DBD-mysql-4.006.tar.gz                   0
     78#  74    Net::Server::Daemonize                Net-Server-0.97.tar.gz                   0.05
    7979  75    File::Path                      File-Path-2.04.tar.gz
    8080  76    File::Mountpoint                File-Mountpoint-0.01.tar.gz             0.01
Note: See TracChangeset for help on using the changeset viewer.