Check-in [511d3ad7a2]

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

Overview
Comment:Fix error when no pkg-{install,message} exists
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:511d3ad7a296e1febca88fa1de1216fa1f313be4
User & Date: bdrewery 2012-06-19 04:24:15
Context
2012-06-19
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
2012-06-18
05:43
use compact test syntax wrap long lines return by default returns 0 ECHO_CMD defined as sh builtin and always return 0, therefore change && to ;

Submitted by: Alex Kozlov (ak@) check-in: 408c12ee83 user: bapt tags: trunk

Changes

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

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
sync-from-stage: stage
.if defined(WITH_PKGNG)
	@${DO_NADA}
.else
	@${ECHO_MSG} "===> Syncing from stagedir"
	@${SH} ${PORTSDIR}/Tools/scripts/sync_from_stage.sh -f ${STAGEDIR} \
		-p ${TMPPLIST} -P ${PREFIX} -w ${WRKDIR}
	@[ -f ${PKGINSTALL} ] && ${SH} ${PKGINSTALL} POST-INSTALL
	@[ -f ${PKGMESSAGE} ] && ${CAT} ${PKGMESSAGE} || return
.endif
.endif

.if !target(genplist)
genplist: stage
	@(${ECHO_CMD} "#mtree"; ${CAT} ${MTREE_FILE}) | ${TAR} tf - | \
		awk '{ sub(/^\.$$/, "", $$1); \







|
|







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
sync-from-stage: stage
.if defined(WITH_PKGNG)
	@${DO_NADA}
.else
	@${ECHO_MSG} "===> Syncing from stagedir"
	@${SH} ${PORTSDIR}/Tools/scripts/sync_from_stage.sh -f ${STAGEDIR} \
		-p ${TMPPLIST} -P ${PREFIX} -w ${WRKDIR}
	@[ -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); \