summaryrefslogtreecommitdiff
path: root/Tools/scripts/addport
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2008-10-21 21:32:08 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2008-10-21 21:32:08 +0000
commit3fe7e87724d3091d15d30ef21ffed30d23cab0af (patch)
tree60c645f47095cd31dd42d94ec9e5fd7a01d651d0 /Tools/scripts/addport
parentAdd py-wsgi_xmlrpc 0.2.5p, WSGI application for a simple XMLRPC method (diff)
Make sure we don't add ${WRKDIR}.
Notes
Notes: svn path=/head/; revision=221883
Diffstat (limited to 'Tools/scripts/addport')
-rwxr-xr-xTools/scripts/addport8
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