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();
18 print "$0: (".join(')(',@ARGV).")\n";
19 while (scalar(@ARGV)) {
20 my $val = shift(@ARGV);
21 if ( ($val eq '-A') || ($val eq 'co') || ($val eq 'cvs')
22 || ($val eq '-P') || ($val eq '-q')) {
23 #print "ignore $val\n";
26 elsif (($val eq '-d') || ($val eq '-q') || ($val eq '-z')) {
27 my $tmp = shift @ARGV;
28 #print "ignore $val $tmp\n";
31 elsif ($val eq '-r') {
32 $branch = shift @ARGV;
33 #print "branch = $branch\n";
36 elsif ($val eq '-l') {
38 #print "dirlocal = $dirlocal\n";
41 elsif ($val =~ /^-/) {
42 print "*** unknown switch: $val\n";
48 #print "dir = $val\n";
52 #print "module = $val\n";
56 #print "dir = (".join(')(', @dirs)."), "
57 # . "module = (".join(')(', @modules)."), "
58 # . "branch = ($branch)\n";
65 foreach my $mod (@modules) {
66 my $cmd = "config/fast-update.pl -r $branch -m $mod" . ($dirlocal ?
" -l" : "");
67 #print "system \"$cmd\"\n";
68 $status |= system $cmd;
70 my $dirlist = join(' -d ', @dirs);
71 my $cmd = "config/fast-update.pl -r $branch -d $dirlist -m all" . ($dirlocal ?
" -l" : "");
72 #print "system \"$cmd\"\n";
73 $status |= system $cmd;