git-cvsimport-script: provide direct support for cvsps -z option
This commit is contained in:
parent
6e7e37b0bf
commit
28537171e7
@ -28,19 +28,19 @@ use POSIX qw(strftime dup2);
|
|||||||
$SIG{'PIPE'}="IGNORE";
|
$SIG{'PIPE'}="IGNORE";
|
||||||
$ENV{'TZ'}="UTC";
|
$ENV{'TZ'}="UTC";
|
||||||
|
|
||||||
our($opt_h,$opt_o,$opt_v,$opt_d,$opt_p,$opt_C);
|
our($opt_h,$opt_o,$opt_v,$opt_d,$opt_p,$opt_C,$opt_z);
|
||||||
|
|
||||||
sub usage() {
|
sub usage() {
|
||||||
print STDERR <<END;
|
print STDERR <<END;
|
||||||
Usage: ${\basename $0} # fetch/update GIT from CVS
|
Usage: ${\basename $0} # fetch/update GIT from CVS
|
||||||
[ -o branch-for-HEAD ] [ -h ] [ -v ] [ -d CVSROOT ]
|
[ -o branch-for-HEAD ] [ -h ] [ -v ] [ -d CVSROOT ]
|
||||||
[ -p opts-for-cvsps ] [ -C GIT_repository ]
|
[ -p opts-for-cvsps ] [ -C GIT_repository ] [ -z fuzz ]
|
||||||
[ CVS_module ]
|
[ CVS_module ]
|
||||||
END
|
END
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
getopts("hqvo:d:p:C:") or usage();
|
getopts("hqvo:d:p:C:z:") or usage();
|
||||||
usage if $opt_h;
|
usage if $opt_h;
|
||||||
|
|
||||||
@ARGV <= 1 or usage();
|
@ARGV <= 1 or usage();
|
||||||
@ -436,6 +436,7 @@ die "Cannot fork: $!\n" unless defined $pid;
|
|||||||
unless($pid) {
|
unless($pid) {
|
||||||
my @opt;
|
my @opt;
|
||||||
@opt = split(/,/,$opt_p) if defined $opt_p;
|
@opt = split(/,/,$opt_p) if defined $opt_p;
|
||||||
|
unshift @opt, '-z', $opt_z if defined $opt_z;
|
||||||
exec("cvsps",@opt,"-u","-A","--cvs-direct",'--root',$opt_d,$cvs_tree);
|
exec("cvsps",@opt,"-u","-A","--cvs-direct",'--root',$opt_d,$cvs_tree);
|
||||||
die "Could not start cvsps: $!\n";
|
die "Could not start cvsps: $!\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user