diff options
author | heinz <heinz@pkgsrc.org> | 2004-01-26 21:10:31 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2004-01-26 21:10:31 +0000 |
commit | 4d478bb0cf2c576a8b11acc997db1553b7538431 (patch) | |
tree | 9cd014719581e8f98556f1ebd6ce69df3bc4aed9 /mk | |
parent | 31c0c28ce5767949dc7df3ae90b3742e6e79b57b (diff) | |
download | pkgsrc-4d478bb0cf2c576a8b11acc997db1553b7538431.tar.gz |
Use $FIND with "-print". Noted by Georg Schwarz in PR pkg/24248
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 8 | ||||
-rw-r--r-- | mk/bulk/bsd.bulk-pkg.mk | 4 | ||||
-rw-r--r-- | mk/bulk/post-build | 9 |
3 files changed, 11 insertions, 10 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 67d40a3d0f2..e6750d3ee23 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1359 2004/01/25 16:12:40 grant Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1360 2004/01/26 21:10:31 heinz Exp $ # # This file is in the public domain. # @@ -2510,7 +2510,7 @@ package-links: .if !target(delete-package-links) delete-package-links: ${_PKG_SILENT}${_PKG_DEBUG}\ - ${FIND} ${PACKAGES} -type l -name ${PKGNAME}${PKG_SUFX} | ${XARGS} ${RM} -f + ${FIND} ${PACKAGES} -type l -name ${PKGNAME}${PKG_SUFX} -print | ${XARGS} ${RM} -f .endif .PHONY: delete-package @@ -4517,7 +4517,7 @@ print-PLIST: "a.out") genlinks=1 ;; \ *) genlinks=0 ;; \ esac; \ - ${FIND} ${PREFIX}/. -xdev -newer ${EXTRACT_COOKIE} \! -type d \ + ${FIND} ${PREFIX}/. -xdev -newer ${EXTRACT_COOKIE} \! -type d -print\ | ${SORT} \ | ${AWK} ' \ { sub("${PREFIX}/\\./", ""); } \ @@ -4544,7 +4544,7 @@ print-PLIST: } \ { print $$0; }' ${_PKG_SILENT}${_PKG_DEBUG}\ - for i in `${FIND} ${PREFIX}/. -xdev -newer ${EXTRACT_COOKIE} -type d \ + for i in `${FIND} ${PREFIX}/. -xdev -newer ${EXTRACT_COOKIE} -type d -print\ | ${SORT} -r \ | ${AWK} ' \ /emul\/linux\/proc/ { next; } \ 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 <hubertf@netbsd.org> @@ -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 (<BF>) { $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: { |