Check-in [332ad0dc2d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Avoid subshell in sh(1) by using {}
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:332ad0dc2d64e0b1bc984e56618d6d22aefe0060
User & Date: bdrewery 2012-06-19 05:09:03
Context
2012-06-19
05:21
Fix hardlinks after syncing files/@execs check-in: 0b6464e93d user: bdrewery tags: trunk
05:09
Avoid subshell in sh(1) by using {} check-in: 332ad0dc2d user: bdrewery tags: trunk
04:24
Fix error when no pkg-{install,message} exists check-in: 511d3ad7a2 user: bdrewery tags: trunk
Changes

Changes to ports/Mk/bsd.stage.mk.

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
	@[ -f ${PKGINSTALL} ] && ${SH} ${PKGINSTALL} POST-INSTALL || true
	@[ -f ${PKGMESSAGE} ] && ${CAT} ${PKGMESSAGE} || true
.endif
.endif

.if !target(genplist)
genplist: stage
	@(${ECHO_CMD} "#mtree"; ${CAT} ${MTREE_FILE}) | ${TAR} tf - | \
		awk '{ sub(/^\.$$/, "", $$1); \
		if ($$1 == "") print "${PREFIX}"; else print "${PREFIX}/"$$1; }' \
		> ${WRKDIR}/.mtree
	@a=${PREFIX}; \
		while :; do \
			a=$${a%/*} ; \
			[ -z "$${a}" ] && break ; \







|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
	@[ -f ${PKGINSTALL} ] && ${SH} ${PKGINSTALL} POST-INSTALL || true
	@[ -f ${PKGMESSAGE} ] && ${CAT} ${PKGMESSAGE} || true
.endif
.endif

.if !target(genplist)
genplist: stage
	@{ ${ECHO_CMD} "#mtree"; ${CAT} ${MTREE_FILE}; } | ${TAR} tf - | \
		awk '{ sub(/^\.$$/, "", $$1); \
		if ($$1 == "") print "${PREFIX}"; else print "${PREFIX}/"$$1; }' \
		> ${WRKDIR}/.mtree
	@a=${PREFIX}; \
		while :; do \
			a=$${a%/*} ; \
			[ -z "$${a}" ] && break ; \