diff options
author | will <will@FreeBSD.org> | 2001-12-23 10:58:42 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-12-23 10:58:42 +0000 |
commit | 28713e9c207f40a075b3ce4cebb133c66d1d366e (patch) | |
tree | 5b732267a108fb8ef50d6b13473686024c54d1ef /Makefile | |
parent | 9767d3009b05ac97a12d6c51a67dade696ef2161 (diff) | |
download | FreeBSD-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-- | 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) |