Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 2010 05:59:20 GMT
From:      Alex Kozlov <spam@rm-rf.kiev.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/146347: [patch] [bsd.port.mk] fix USE_DOS2UNIX info output
Message-ID:  <201005060559.o465xK6D021040@www.freebsd.org>
Resent-Message-ID: <201005060600.o4660CUr017788@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 06 06:00:12 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kozlov
>Release:        RELENG_8
>Organization:
private
>Environment:
>Description:
"Converting DOS text file to UNIX text file: ${f}" don't show file name because ${f} is undefined at this moment.
>How-To-Repeat:

>Fix:


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/$$//'
 .else
+.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}
-.endfor
 .else
-.for f in ${USE_DOS2UNIX}
 	@${FIND} ${WRKSRC} -type f -name '${f}' -print0 | \
 			${XARGS} -0 ${REINPLACE_CMD} -i '' -e 's/$$//'
-.endfor
 .endif
+.endfor
 .endif
 .else
 	@${DO_NADA}


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005060559.o465xK6D021040>