From owner-svn-doc-all@FreeBSD.ORG Fri Nov 22 13:31:31 2013 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7F74814D; Fri, 22 Nov 2013 13:31:31 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6E79524CC; Fri, 22 Nov 2013 13:31:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAMDVV9v098688; Fri, 22 Nov 2013 13:31:31 GMT (envelope-from rene@svn.freebsd.org) Received: (from rene@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAMDVVYj098686; Fri, 22 Nov 2013 13:31:31 GMT (envelope-from rene@svn.freebsd.org) Message-Id: <201311221331.rAMDVVYj098686@svn.freebsd.org> From: Rene Ladan Date: Fri, 22 Nov 2013 13:31:31 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r43214 - head/en_US.ISO8859-1/books/porters-handbook X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Nov 2013 13:31:31 -0000 Author: rene Date: Fri Nov 22 13:31:30 2013 New Revision: 43214 URL: http://svnweb.freebsd.org/changeset/doc/43214 Log: Replace USE_DOS2UNIX by USES=dos2unix in the running text of the Porters Handbook and add it to the list in uses.xml Approved by: gjb (mentor) Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml head/en_US.ISO8859-1/books/porters-handbook/uses.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/book.xml Fri Nov 22 13:29:29 2013 (r43213) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Fri Nov 22 13:31:30 2013 (r43214) @@ -11,7 +11,6 @@ --> FreeBSD Porter's Handbook - The FreeBSD Documentation Project @@ -827,11 +826,11 @@ PLIST_DIRS= lib/X11/oneko/bin/sh^M not found.) To quickly convert all files from CR/LF to just LF, add - USE_DOS2UNIX=yes to the port + USES=dos2unix to the port Makefile. A list of files to convert can be specified: - USE_DOS2UNIX= util.c util.h + DOS2UNIX_FILES= util.c util.h If you want to convert a group of files across subdirectories, DOS2UNIX_REGEX can be used. @@ -841,8 +840,15 @@ PLIST_DIRS= lib/X11/oneko - USE_DOS2UNIX= yes -DOS2UNIX_REGEX= .*\.(c|cpp|h) + USES= dos2unix +DOS2UNIX_REGEX= .*\.([ch]|cpp) + + A similar option is DOS2UNIX_GLOB, which + invokes find for each element listed in + it. + + USES= dos2unix +DOS2UNIX_GLOB= *.c *.cpp *.h If you want to create a patch file based off of an existing file, you can copy it with an Modified: head/en_US.ISO8859-1/books/porters-handbook/uses.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/uses.xml Fri Nov 22 13:29:29 2013 (r43213) +++ head/en_US.ISO8859-1/books/porters-handbook/uses.xml Fri Nov 22 13:31:30 2013 (r43214) @@ -74,6 +74,24 @@ + dos2unix + (none) + + The port has files with line endings in DOS format which need + to be converted. Three variables can be set to control which files + will be converted. The default is to convert + all files, including binaries. + + DOS2UNIX_REGEX: match file + names based on a regular expression. + DOS2UNIX_FILES: match literal + file names. + DOS2UNIX_GLOB: match file + names based on a glob pattern. + + + + fuse (none)