docs/80649: Wrong command for CRLF->LF conversion in porters-handbook
Vasil Dimov
vd at datamax.bg
Thu May 5 09:20:07 UTC 2005
>Number: 80649
>Category: docs
>Synopsis: Wrong command for CRLF->LF conversion in porters-handbook
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Thu May 05 09:20:05 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Vasil Dimov
>Release: FreeBSD 5.4-STABLE i386
>Organization:
DataMax
>Environment:
System: FreeBSD sinanica.bg.datamax 5.4-STABLE FreeBSD 5.4-STABLE #5: Mon Apr 11 14:07:32 EEST 2005 root at sinanica.bg.datamax:/usr/obj/usr/src/sys/SINANICA-SMP i386
>Description:
The command given in the "4.4 Patching" chapter of the porters-handbook
as a way to convert CRLF line endings (dos format) to LF (unix) is
mixture from find's -exec ... '{}' \; and xargs.
>How-To-Repeat:
>Fix:
--- en_US.ISO8859-1/books/porters-handbook/book.sgml.orig Thu May 5 11:58:37 2005
+++ en_US.ISO8859-1/books/porters-handbook/book.sgml Thu May 5 11:59:17 2005
@@ -694,7 +694,7 @@
post-extract:
@${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|cpp|h|txt)" -print0 | \
- ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' '{}' \;</programlisting>
+ ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'</programlisting>
<para>Of course, if you need to process each and every file,
<option>-iregex</option> above can be omitted. Be aware that this
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list