diff options
author | jschauma <jschauma@pkgsrc.org> | 2005-09-25 15:05:40 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2005-09-25 15:05:40 +0000 |
commit | b7d81330d8752ecdd2102f336363620c90f9aece (patch) | |
tree | 2c2a820b6115ce11722aaaf535dc45fa854a8dfe | |
parent | 8908e926edd213280c2f55d7f59c5476bea4b252 (diff) | |
download | pkgsrc-b7d81330d8752ecdd2102f336363620c90f9aece.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-build | 4 |
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) { |