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/bulk/post-build | |
parent | 31c0c28ce5767949dc7df3ae90b3742e6e79b57b (diff) | |
download | pkgsrc-4d478bb0cf2c576a8b11acc997db1553b7538431.tar.gz |
Use $FIND with "-print". Noted by Georg Schwarz in PR pkg/24248
Diffstat (limited to 'mk/bulk/post-build')
-rw-r--r-- | mk/bulk/post-build | 9 |
1 files changed, 5 insertions, 4 deletions
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: { |