summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-12-23 10:58:42 +0000
committerwill <will@FreeBSD.org>2001-12-23 10:58:42 +0000
commit28713e9c207f40a075b3ce4cebb133c66d1d366e (patch)
tree5b732267a108fb8ef50d6b13473686024c54d1ef /Makefile
parent9767d3009b05ac97a12d6c51a67dade696ef2161 (diff)
downloadFreeBSD-ports-28713e9c207f40a075b3ce4cebb133c66d1d366e.zip
FreeBSD-ports-28713e9c207f40a075b3ce4cebb133c66d1d366e.tar.gz
Don't use cat(1) needlessly -- pipe the INDEX to awk(1).
PR: 30099 Submitted by: schweikh
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 189ad66..1d59b90 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
OpenPOWER on IntegriCloud