From vd@datamax.bg  Thu May  5 09:18:04 2005
Return-Path: <vd@datamax.bg>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 95A1316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 May 2005 09:18:04 +0000 (GMT)
Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0E48443D49
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 May 2005 09:18:04 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1])
	by jengal.datamax.bg (Postfix) with QMQP id DAA6B87E3
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 May 2005 12:17:57 +0300 (EEST)
Received: (nullmailer pid 15579 invoked by uid 1004);
	Thu, 05 May 2005 09:17:57 -0000
Message-Id: <20050505091757.GA15527@sinanica.bg.datamax>
Date: Thu, 5 May 2005 12:17:57 +0300
From: Vasil Dimov <vd@datamax.bg>
Reply-To: vd@datamax.bg
To: FreeBSD-gnats-submit@freebsd.org
Subject: Wrong command for CRLF->LF conversion in porters-handbook
X-Send-Pr-Version: 3.113

>Number:         80649
>Category:       docs
>Synopsis:       Wrong command for CRLF->LF conversion in porters-handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    keramida
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 05 09:20:05 GMT 2005
>Closed-Date:    Thu May 05 09:52:50 GMT 2005
>Last-Modified:  Thu May 05 09:52:50 GMT 2005
>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@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:
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Thu May 5 09:52:26 GMT 2005 
State-Changed-Why:  
Good catch.  Thanks :) 


Responsible-Changed-From-To: freebsd-doc->keramida 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Thu May 5 09:52:26 GMT 2005 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=80649 
>Unformatted:
