From owner-svn-doc-all@FreeBSD.ORG Fri Mar 22 04:16:16 2013 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A07CFEDD; Fri, 22 Mar 2013 04:16:16 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7B293EB7; Fri, 22 Mar 2013 04:16:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2M4GGZn059948; Fri, 22 Mar 2013 04:16:16 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2M4GGXg059947; Fri, 22 Mar 2013 04:16:16 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201303220416.r2M4GGXg059947@svn.freebsd.org> From: Alexey Dokuchaev Date: Fri, 22 Mar 2013 04:16:16 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r41286 - 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.14 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 Mar 2013 04:16:16 -0000 Author: danfe (ports committer) Date: Fri Mar 22 04:16:15 2013 New Revision: 41286 URL: http://svnweb.freebsd.org/changeset/doc/41286 Log: Improve examples of COPYTREE_SHARE usage: prefer dot (.) to \* since using characters subject to shell expansion is potentially unsafe (even with proper escaping, which tend to break if this construct will be evaluated twice, for example). Dot also looks more neat. While here, remove two misusages of trailing slashes. Approved by: gjb Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/book.xml Thu Mar 21 19:14:23 2013 (r41285) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Fri Mar 22 04:16:15 2013 (r41286) @@ -4887,7 +4887,7 @@ PORTVERSION= 1.0 post-install: ${MKDIR} ${EXAMPLESDIR} - (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) + (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) This example will install the contents of examples directory in the vendor @@ -4896,7 +4896,7 @@ PORTVERSION= 1.0 post-install: ${MKDIR} ${DATADIR}/summer - (cd ${WRKSRC}/temperatures/ && ${COPYTREE_SHARE} "June July August" ${DATADIR}/summer/) + (cd ${WRKSRC}/temperatures/ && ${COPYTREE_SHARE} "June July August" ${DATADIR}/summer) And this example will install the data of summer months to the summer subdirectory of a @@ -4911,7 +4911,7 @@ PORTVERSION= 1.0 post-install: ${MKDIR} ${EXAMPLESDIR} (cd ${WRKSRC}/examples/ && \ - ${COPYTREE_SHARE} \* ${EXAMPLESDIR} "! -name Makefile") + ${COPYTREE_SHARE} . ${EXAMPLESDIR} "! -name Makefile") Note that these macros does not add the installed files to pkg-plist. You still need to list @@ -16051,7 +16051,7 @@ Reference: <http://www.freebsd.org/po LOCALBASE The base of the local tree (e.g., - /usr/local/) + /usr/local)