ports/146347: [patch] [bsd.port.mk] fix USE_DOS2UNIX info output

Alex Kozlov spam at rm-rf.kiev.ua
Thu May 6 06:00:14 UTC 2010

>Number:         146347
>Category:       ports
>Synopsis:       [patch] [bsd.port.mk] fix USE_DOS2UNIX info output
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 06 06:00:12 UTC 2010
>Originator:     Alex Kozlov
>Release:        RELENG_8
"Converting DOS text file to UNIX text file: ${f}" don't show file name because ${f} is undefined at this moment.


Patch attached with submission follows:

Index: Mk/bsd.port.mk
@@ -3659,17 +3659,15 @@
 	@${FIND} -E ${WRKSRC} -type f -iregex '${DOS2UNIX_REGEX}' -print0 | \
 			${XARGS} -0 ${REINPLACE_CMD} -i '' -e 's/$$//'
+.for f in ${USE_DOS2UNIX}
 	@${ECHO_MSG} "===>   Converting DOS text file to UNIX text file: ${f}"
 .if ${USE_DOS2UNIX:M*/*}
-.for f in ${USE_DOS2UNIX}
 	@${REINPLACE_CMD} -i '' -e 's/$$//' ${WRKSRC}/${f}
-.for f in ${USE_DOS2UNIX}
 	@${FIND} ${WRKSRC} -type f -name '${f}' -print0 | \
 			${XARGS} -0 ${REINPLACE_CMD} -i '' -e 's/$$//'


More information about the freebsd-ports-bugs mailing list