IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13912


Ignore:
Timestamp:
Jun 19, 2007, 5:29:53 PM (19 years ago)
Author:
eugene
Message:

default to latest distribution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r12868 r13912  
    5757@ARGV = @tARGV;
    5858
    59 if ( @ARGV != 1) { &usage (); }
    60 
    61 $distribution = $ARGV[0];
     59if ( @ARGV == 0) {
     60    @list = <$tagsets/*.dist>;
     61    $distribution = $list[-1];
     62} else {
     63    $distribution = "$tagsets/$ARGV[0].dist";
     64}
     65
    6266&load_distfile ();
    6367
     
    202206    # open and read the distribution file
    203207    # results go into @cvsname, @branchtag, @branchver, @mode
    204     $file = "$tagsets/$ARGV[0].dist";
    205     open (FILE, $file) || die "ERROR: can't open distribution file $file\n";
     208    open (FILE, $distribution) || die "ERROR: can't open distribution file $distribution\n";
    206209    @list = <FILE>;
    207210    close (FILE);
Note: See TracChangeset for help on using the changeset viewer.