mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Don't use cat(1) needlessly -- pipe the INDEX to awk(1).
PR: 30099 Submitted by: schweikh
This commit is contained in:
parent
5302aeeaa5
commit
5c4150e92b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=52042
2
Makefile
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user