diff options
-rwxr-xr-x | Tools/scripts/addport | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index 70c95ad3a595..6ab5e35b2d09 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -307,7 +307,7 @@ foreach my $thisdir (@dirs) { } chdir $category or err(1,"$category"); system("$cp -PRp $thisdir ."); - system("$cvs $n add `find $portname -type d | grep -v CVS`") && errx(1, "cvs add for dirs failed, aborting."); + system("$cvs $n add `find $portname -type d | grep -v CVS | grep -v '^$portname/work'`") && errx(1, "cvs add for dirs failed, aborting."); my $gotfiles = 0; if ($binfiles) { @@ -320,10 +320,10 @@ foreach my $thisdir (@dirs) { } if ($binfiles && $gotfiles > 0) { - system("$cvs $n add `find $portname -type f | grep -v CVS | grep -v '^$portname/files/.*patch-.*'`") && errx(1, "cvs add for files failed, aborting."); - system("$cvs $n add -ko `find $portname -type f | grep -v CVS | grep '^$portname/files/.*patch-.*'`") && errx(1, "cvs add for files failed, aborting."); + system("$cvs $n add `find $portname -type f | grep -v CVS | grep -v '^$portname/files/.*patch-.*' | grep -v '^$portname/work'`") && errx(1, "cvs add for files failed, aborting."); + system("$cvs $n add -ko `find $portname -type f | grep -v CVS | grep -v '^$portname/work' | grep '^$portname/files/.*patch-.*'`") && errx(1, "cvs add for files failed, aborting."); } else { - system("$cvs $n add `find $portname -type f | grep -v CVS`") && errx(1, "cvs add for files failed, aborting."); + system("$cvs $n add `find $portname -type f | grep -v CVS | grep -v '^$portname/work'`") && errx(1, "cvs add for files failed, aborting."); } # figure out where the port name belongs in category Makefile |