Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2013 04:16:16 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
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
Message-ID:  <201303220416.r2M4GGXg059947@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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</programlisting>
 
 	<programlisting>post-install:
 	${MKDIR} ${EXAMPLESDIR}
-	(cd ${WRKSRC}/examples/ &amp;&amp; ${COPYTREE_SHARE} \* ${EXAMPLESDIR})</programlisting>
+	(cd ${WRKSRC}/examples/ &amp;&amp; ${COPYTREE_SHARE} . ${EXAMPLESDIR})</programlisting>
 
 	<para>This example will install the contents of
 	  <filename>examples</filename> directory in the vendor
@@ -4896,7 +4896,7 @@ PORTVERSION=	1.0</programlisting>
 
 	<programlisting>post-install:
 	${MKDIR} ${DATADIR}/summer
-	(cd ${WRKSRC}/temperatures/ &amp;&amp; ${COPYTREE_SHARE} "June July August" ${DATADIR}/summer/)</programlisting>
+	(cd ${WRKSRC}/temperatures/ &amp;&amp; ${COPYTREE_SHARE} "June July August" ${DATADIR}/summer)</programlisting>
 
 	<para>And this example will install the data of summer months
 	  to the <filename>summer</filename> subdirectory of a
@@ -4911,7 +4911,7 @@ PORTVERSION=	1.0</programlisting>
 	<programlisting>post-install:
 	${MKDIR} ${EXAMPLESDIR}
 	(cd ${WRKSRC}/examples/ &amp;&amp; \
-		${COPYTREE_SHARE} \* ${EXAMPLESDIR} "! -name Makefile")</programlisting>
+		${COPYTREE_SHARE} . ${EXAMPLESDIR} "! -name Makefile")</programlisting>
 
 	<para>Note that these macros does not add the installed files
 	  to <filename>pkg-plist</filename>.  You still need to list
@@ -16051,7 +16051,7 @@ Reference: &lt;http://www.freebsd.org/po
 	    <row>
 	      <entry><makevar>LOCALBASE</makevar></entry>
 	      <entry>The base of the <quote>local</quote> tree (e.g.,
-		<literal>/usr/local/</literal>)</entry>
+		<literal>/usr/local</literal>)</entry>
 	    </row>
 
 	    <row>



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