master
joey 2006-03-11 02:22:55 +00:00
parent d7c2176a42
commit c68f6c84b7
1 changed files with 7 additions and 1 deletions

View File

@ -350,10 +350,16 @@ sub rcs_commit ($) {
} }
} }
sub rcs_ad ($) { sub rcs_add ($) {
my $file=shift; my $file=shift;
if (-d "$srcdir/.svn") { if (-d "$srcdir/.svn") {
my $parent=dirname($file);
while (! -d "$srcdir/$parent/.svn") {
$file=$parent;
$parent=dirname($file);
}
if (system("svn", "add", "--quiet", $file) != 0) { if (system("svn", "add", "--quiet", $file) != 0) {
warn("svn add failed\n"); warn("svn add failed\n");
} }