From 50eca4d601f087814ce956fd517cd7159f3ca497 Mon Sep 17 00:00:00 2001 From: heinz Date: Mon, 26 Jan 2004 21:10:31 +0000 Subject: Use $FIND with "-print". Noted by Georg Schwarz in PR pkg/24248 --- mk/bulk/bsd.bulk-pkg.mk | 4 ++-- mk/bulk/post-build | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'mk/bulk') diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk index daa3d405192..c77fd407a61 100644 --- a/mk/bulk/bsd.bulk-pkg.mk +++ b/mk/bulk/bsd.bulk-pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.bulk-pkg.mk,v 1.54 2004/01/20 09:41:52 grant Exp $ +# $NetBSD: bsd.bulk-pkg.mk,v 1.55 2004/01/26 21:10:32 heinz Exp $ # # Copyright (c) 1999, 2000 Hubert Feyrer @@ -168,7 +168,7 @@ bulk-check-uptodate: if [ -z "$$pkg" ]; then \ ${ECHO_MSG} >&2 "BULK> Required binary package $$dep does not exist, rebuilding... " ; \ uptodate=0 ; \ - elif [ -n "$$(${FIND} $$pkg -prune -newer ${REF})" ]; then \ + elif [ -n "$$(${FIND} $$pkg -prune -newer ${REF} -print)" ]; then \ ${ECHO_MSG} >&2 "BULK> Required binary package $$dep (`basename $$pkg`) is newer, rebuilding... " ; \ uptodate=0 ; \ else \ diff --git a/mk/bulk/post-build b/mk/bulk/post-build index f46de66cf3f..dea113e30d1 100644 --- a/mk/bulk/post-build +++ b/mk/bulk/post-build @@ -1,5 +1,5 @@ #!/usr/pkg/bin/perl -# $NetBSD: post-build,v 1.27 2004/01/20 12:37:08 grant Exp $ +# $NetBSD: post-build,v 1.28 2004/01/26 21:10:32 heinz Exp $ # # Collect stuff after a pkg bulk build # @@ -54,6 +54,7 @@ chomp($ORDERFILE=`( cd $USR_PKGSRC/pkgtools/pkglint ; $ENV{"BMAKE"} show-var VAR chomp($STARTFILE=`( cd $USR_PKGSRC/pkgtools/pkglint ; $ENV{"BMAKE"} show-var VARNAME=STARTFILE )`); chomp($LOCALBASE=`( cd $USR_PKGSRC/pkgtools/pkglint ; $ENV{"BMAKE"} show-var VARNAME=LOCALBASE )`); chomp($X11BASE=`( cd $USR_PKGSRC/pkgtools/pkglint ; $ENV{"BMAKE"} show-var VARNAME=X11BASE )`); +chomp($FIND=`( cd $USR_PKGSRC/pkgtools/pkglint ; $ENV{"BMAKE"} show-var VARNAME=FIND )`); $dtfile=basename($DEPENDSTREEFILE); $depfile=basename($DEPENDSFILE); $supfile=basename($SUPPORTSFILE); @@ -137,7 +138,7 @@ while () { $nunpackaged++; } - @idents = `find ${USR_PKGSRC}/${pkg} -type f -print | xargs grep \\\$NetBSD`; + @idents = `${FIND} ${USR_PKGSRC}/${pkg} -type f -print | xargs grep \\\$NetBSD`; $datetime = ""; $who = "nobody"; $file = ""; @@ -253,8 +254,8 @@ close(HTML); # Find files since last build: $leftovers_txt = "leftovers-${arch}.txt"; $leftovers_html = "leftovers-${arch}.html"; - system("find ${LOCALBASE} -newer ${USR_PKGSRC}/${startfile} -type f >>$leftovers_txt"); - system("find ${X11BASE} -newer ${USR_PKGSRC}/${startfile} -type f >>$leftovers_txt"); + system("${FIND} ${LOCALBASE} -newer ${USR_PKGSRC}/${startfile} -type f -print >>$leftovers_txt"); + system("${FIND} ${X11BASE} -newer ${USR_PKGSRC}/${startfile} -type f -print >>$leftovers_txt"); # Strip perl-files: { -- cgit v1.2.3