PERFORCE change 103585 for review

Gabor Kovesdan gabor at FreeBSD.org
Thu Aug 10 17:43:35 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=103585

Change 103585 by gabor at gabor_spitfire on 2006/08/10 17:42:50

	Fix MLINKS for DESTDIR.
	
	Submitted by:	John E. Hein <jhein at timing dot com>

Affected files ...

.. //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#79 edit

Differences ...

==== //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#79 (text+ko) ====

@@ -2592,7 +2592,7 @@
 .endfor
 .endif
 _COUNT=0
-.for ___tpmlinks in ${_MLINKS}
+.for ___tpmlinks in ${_MLINKS:S%^${DESTDIR}%%}
 .if ${_COUNT} == "1"
 _TMLINKS+=	${___tpmlinks}
 _COUNT=0
@@ -5114,7 +5114,7 @@
 	@set ${_MLINKS}; \
 	while :; do \
 		[ $$# -eq 0 ] && break || ${TRUE}; \
-		${RM} -f $${2%.gz}; ${RM} -f $$2.gz; \
+		${RM} -f $${2%.gz}; ${RM} -f $${2%.gz}.gz; \
 		${LN} -fs `${ECHO_CMD} $$1 $$2 | ${AWK} '{ \
 					z=split($$1, a, /\//); x=split($$2, b, /\//); \
 					while (a[i] == b[i]) i++; \


More information about the p4-projects mailing list