summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2005-09-25 15:05:40 +0000
committerjschauma <jschauma@pkgsrc.org>2005-09-25 15:05:40 +0000
commit7918d7a65a5ae1f6d4664f407628d2e8a59e1bb5 (patch)
tree2c2a820b6115ce11722aaaf535dc45fa854a8dfe
parentbbdba565632796fdefff1d516b6deeaa90971025 (diff)
downloadpkgsrc-7918d7a65a5ae1f6d4664f407628d2e8a59e1bb5.tar.gz
Finally remember to commit this:
Make use of find(1) instead of ls(1) to find the broken files. This prevents the generation of an empty report due to 'too many arguments' to ls on certain platforms.
-rw-r--r--mk/bulk/post-build4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bulk/post-build b/mk/bulk/post-build
index 609a5ac615d..7587175625b 100644
--- a/mk/bulk/post-build
+++ b/mk/bulk/post-build
@@ -1,5 +1,5 @@
#!/usr/pkg/bin/perl
-# $NetBSD: post-build,v 1.57 2005/08/26 07:24:53 reed Exp $
+# $NetBSD: post-build,v 1.58 2005/09/25 15:05:40 jschauma Exp $
#
# Collect stuff after a pkg bulk build
#
@@ -119,7 +119,7 @@ my_system("mkdir -p $vars{FTP}");
# Copy over the output from the build process
chdir($vars{USR_PKGSRC});
-my_system("/bin/ls -1 $vars{BROKENFILE} $vars{BROKENWRKLOG} */*/$vars{BROKENFILE} */*/$vars{BROKENWRKLOG} 2>/dev/null | $vars{PAX} -r -w -X -p e $vars{FTP}");
+my_system("find . -name $vars{BROKENFILE} -print -o -name $vars{BROKENWRKLOG} -print | $vars{PAX} -r -w -X -p e $vars{FTP}");
# Copy over the cache files used during the build
foreach my $f qw(BULK_DBFILE DEPENDSTREEFILE DEPENDSFILE SUPPORTSFILE INDEXFILE ORDERFILE) {