IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2007, 12:09:41 AM (19 years ago)
Author:
eugene
Message:

cleanup up build scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/mkdist

    r11730 r12132  
    2626    if ($ARGV[0] eq "-devtag") {
    2727        $setdevtag = 1;
    28         shift; next;
    29     }
    30     if ($ARGV[0] eq "-deltag") {
    31         $deltag = 1;
    3228        shift; next;
    3329    }
     
    7470        print STDERR "--- $cvsname[$i] ---\n";
    7571        if ($cvsname[$i] eq "base") { next; }
    76         if ($tag[$i] eq "") {
    77             &vsystem ("cvs -q rdiff -s -r HEAD $cvsname[$i]");
    78         } else {
    79             &vsystem ("cvs -q rdiff -s -r $tag[$i] $cvsname[$i]");
    80         }       
     72        if ($tag[$i] eq "") { next; }
     73        &vsystem ("cvs -q rdiff -s -r $tag[$i] $cvsname[$i]");
    8174        print STDERR "\n\n";
    8275    }
     
    139132
    140133sub list_distributions {
    141 
    142     vsystem ("ls $tagsets/*.dst");
     134    @list = <$tagsets/*.dst>;
     135    foreach $line (@list) {
     136        chomp $line;
     137        ($dist) = $line =~ m|$tagsets/(\S*).dst|;
     138        print STDERR "$dist\n";
     139    }
    143140    exit 2;
    144141}
     
    183180
    184181sub usage {
    185     print STDERR "USAGE: mkdist -list\n";
    186     print STDERR "     : list valid distributions \n\n";
    187     print STDERR "USAGE: mkdist (distribution) [-cvs]\n";
    188     print STDERR "     : make a distribution tarball\n";
    189     print STDERR "     : -cvs  : only check out the cvs tree, don't make a tarball\n\n";
    190     print STDERR "USAGE: mkdist -diff (group) (version)\n";
    191     print STDERR "     : show the difference between the distribution and current tree\n\n";
     182    print STDERR "USAGE: mkdist [options] (distribution]\n";
     183    print STDERR "     : -tag     : set tags on branch based on distribution table\n";
     184    print STDERR "     : -branch  : set branch tags based on distribution table (requires -tag)\n";
     185    print STDERR "     : -devtag  : set tags on cvs HEAD based on distribution table (requires -tag)\n\n";
     186
     187    print STDERR "     : -tarball : make a distribution tarball\n";
     188    print STDERR "     : -cvs     : check out tree and leave CVS elements behind\n";
     189    print STDERR "     : -module  : perform action only on the specified module\n\n";
     190    print STDERR "     : -list    : list valid distributions \n\n";
     191    print STDERR "     : -diff    : show the difference between the distribution and current cvs HEAD\n";
    192192    exit 2;
    193193}
Note: See TracChangeset for help on using the changeset viewer.