Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
cvsimport: Added option '-p': pass options to cvsps
author
Matthias Urlichs
<smurf@kiste.(none)>
Thu, 30 Jun 2005 20:54:01 +0000
(22:54 +0200)
committer
Matthias Urlichs
<smurf@kiste.(none)>
Thu, 30 Jun 2005 20:54:01 +0000
(22:54 +0200)
Added option '-x' to cvsps call
git-cvsimport-script
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4c24e08
)
diff --git
a/git-cvsimport-script
b/git-cvsimport-script
index 1151fb8c0d570a6d45a3e22bcffde58e45847e18..7ee8845a3dd922644d9cf9b9e64da29c4c59497f 100755
(executable)
--- a/
git-cvsimport-script
+++ b/
git-cvsimport-script
@@
-26,18
+26,19
@@
use POSIX qw(strftime dup2);
$SIG{'PIPE'}="IGNORE";
$ENV{'TZ'}="UTC";
$SIG{'PIPE'}="IGNORE";
$ENV{'TZ'}="UTC";
-our($opt_h,$opt_o,$opt_v,$opt_d);
+our($opt_h,$opt_o,$opt_v,$opt_d
,$opt_p
);
sub usage() {
print STDERR <<END;
Usage: ${\basename $0} # fetch/update GIT from CVS
[ -o branch-for-HEAD ] [ -h ] [ -v ] [ -d CVSROOT ]
sub usage() {
print STDERR <<END;
Usage: ${\basename $0} # fetch/update GIT from CVS
[ -o branch-for-HEAD ] [ -h ] [ -v ] [ -d CVSROOT ]
+ [ -p opts-for-cvsps ]
CVS_module [ GIT_repository ]
END
exit(1);
}
CVS_module [ GIT_repository ]
END
exit(1);
}
-getopts("hqvo:d:") or usage();
+getopts("hqvo:d:
p:
") or usage();
usage if $opt_h;
@ARGV == 1 or @ARGV == 2 or usage();
usage if $opt_h;
@ARGV == 1 or @ARGV == 2 or usage();
@@
-375,7
+376,9
@@
unless(-d $git_dir) {
my $pid = open(CVS,"-|");
die "Cannot fork: $!\n" unless defined $pid;
unless($pid) {
my $pid = open(CVS,"-|");
die "Cannot fork: $!\n" unless defined $pid;
unless($pid) {
- exec("cvsps","-A","--cvs-direct",$cvs_tree);
+ my @opt;
+ @opt = split(/,/,$opt_p) if defined $opt_p;
+ exec("cvsps",@opt,"-x","-A","--cvs-direct",$cvs_tree);
die "Could not start cvsps: $!\n";
}
die "Could not start cvsps: $!\n";
}