diff options
author | Will Andrews <will@FreeBSD.org> | 2001-12-23 10:58:42 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-12-23 10:58:42 +0000 |
commit | 5c4150e92b9d06afb2d6216d85d783369553e7fb (patch) | |
tree | 74fecfaef3049ba52c6d4cbdadbae634a5b41692 /Makefile | |
parent | Upgrade to 1.8.3. (diff) |
Don't use cat(1) needlessly -- pipe the INDEX to awk(1).
PR: 30099
Submitted by: schweikh
Notes
Notes:
svn path=/head/; revision=52042
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ parallel: ${.CURDIR}/INDEX .for dir in ${SUBDIR} @echo "all: ${dir}-all" .endfor - @cat ${.CURDIR}/INDEX | awk -F '|' '{me=$$1; here=$$2; bdep=$$8; rdep=$$9; split(here, tmp, "/"); if (bdep != "") { gsub("$$", ".tgz", bdep); gsub(" ", ".tgz ", bdep); } if (rdep != "") { gsub("$$", ".tgz", rdep); gsub(" ", ".tgz ", rdep); } print tmp[4] "-all: " me ".tgz"; print me ": " me ".tgz"; print me ".tgz: " bdep " " rdep; printf("\t@/var/portbuild/scripts/pdispatch ${branch} /var/portbuild/scripts/portbuild %s.tgz %s", me, here); if (bdep != "") printf(" %s", bdep); if (rdep != "") printf(" %s", rdep); printf("\n")}' + @awk -F '|' '{me=$$1; here=$$2; bdep=$$8; rdep=$$9; split(here, tmp, "/"); if (bdep != "") { gsub("$$", ".tgz", bdep); gsub(" ", ".tgz ", bdep); } if (rdep != "") { gsub("$$", ".tgz", rdep); gsub(" ", ".tgz ", rdep); } print tmp[4] "-all: " me ".tgz"; print me ": " me ".tgz"; print me ".tgz: " bdep " " rdep; printf("\t@/var/portbuild/scripts/pdispatch ${branch} /var/portbuild/scripts/portbuild %s.tgz %s", me, here); if (bdep != "") printf(" %s", bdep); if (rdep != "") printf(" %s", rdep); printf("\n")}' < ${.CURDIR}/INDEX CVS?= cvs .if defined(SUPHOST) |