3
# cvsco-fast-update.pl cvs co ...
5
# This command parses a "cvs co ..." command and converts it to
6
# fast-update.pl commands
10
my $filename = ".fast-update";
11
my $start_time = time();
17
print "$0: (".join(')(',@ARGV).")\n";
18
while (scalar(@ARGV)) {
19
my $val = shift(@ARGV);
20
if ( ($val eq '-A') || ($val eq 'co') || ($val eq 'cvs')
21
|| ($val eq '-P') || ($val eq '-q')) {
22
#print "ignore $val\n";
25
elsif (($val eq '-d') || ($val eq '-q') || ($val eq '-z')) {
26
my $tmp = shift @ARGV;
27
#print "ignore $val $tmp\n";
30
elsif ($val eq '-r') {
31
$branch = shift @ARGV;
32
#print "branch = $branch\n";
35
elsif ($val =~ /^-/) {
36
print "*** unknown switch: $val\n";
42
#print "dir = $val\n";
46
#print "module = $val\n";
50
#print "dir = (".join(')(', @dirs)."), "
51
# . "module = (".join(')(', @modules)."), "
52
# . "branch = ($branch)\n";
59
foreach my $mod (@modules) {
60
my $cmd = "config/fast-update.pl -r $branch -m $mod";
61
#print "system \"$cmd\"\n";
62
$status |= system $cmd;
64
foreach my $d (@dirs) {
65
my $cmd = "config/fast-update.pl -r $branch -d $d -m all";
66
#print "system \"$cmd\"\n";
67
$status |= system $cmd;