summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e7e37b)
raw | patch | inline | side by side (parent: 6e7e37b)
author | Sven Verdoolaege <skimo@kotnet.org> | |
Mon, 4 Jul 2005 15:10:06 +0000 (17:10 +0200) | ||
committer | Sven Verdoolaege <skimo@kotnet.org> | |
Mon, 4 Jul 2005 15:10:06 +0000 (17:10 +0200) |
git-cvsimport-script | patch | blob | history |
diff --git a/git-cvsimport-script b/git-cvsimport-script
index 62df91666e7d5b1197f5ba9d3cc480da730986f1..9773891b5ddbafbbaea4425f594b131679dfa5b7 100755 (executable)
--- a/git-cvsimport-script
+++ b/git-cvsimport-script
$SIG{'PIPE'}="IGNORE";
$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() {
print STDERR <<END;
Usage: ${\basename $0} # fetch/update GIT from CVS
- [ -o branch-for-HEAD ] [ -h ] [ -v ] [ -d CVSROOT ]
- [ -p opts-for-cvsps ] [ -C GIT_repository ]
+ [ -o branch-for-HEAD ] [ -h ] [ -v ] [ -d CVSROOT ]
+ [ -p opts-for-cvsps ] [ -C GIT_repository ] [ -z fuzz ]
[ CVS_module ]
END
exit(1);
}
-getopts("hqvo:d:p:C:") or usage();
+getopts("hqvo:d:p:C:z:") or usage();
usage if $opt_h;
@ARGV <= 1 or usage();
unless($pid) {
my @opt;
@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);
die "Could not start cvsps: $!\n";
}