Changeset 12132 for trunk/psconfig/mkdist
- Timestamp:
- Mar 1, 2007, 12:09:41 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psconfig/mkdist (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/mkdist
r11730 r12132 26 26 if ($ARGV[0] eq "-devtag") { 27 27 $setdevtag = 1; 28 shift; next;29 }30 if ($ARGV[0] eq "-deltag") {31 $deltag = 1;32 28 shift; next; 33 29 } … … 74 70 print STDERR "--- $cvsname[$i] ---\n"; 75 71 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]"); 81 74 print STDERR "\n\n"; 82 75 } … … 139 132 140 133 sub 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 } 143 140 exit 2; 144 141 } … … 183 180 184 181 sub 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"; 192 192 exit 2; 193 193 }
Note:
See TracChangeset
for help on using the changeset viewer.
