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
This commit is contained in:
parent
b2a0653d6f
commit
9e5c816204
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=41286
1 changed files with 4 additions and 4 deletions
|
@ -4887,7 +4887,7 @@ PORTVERSION= 1.0</programlisting>
|
|||
|
||||
<programlisting>post-install:
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})</programlisting>
|
||||
(cd ${WRKSRC}/examples/ && ${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/ && ${COPYTREE_SHARE} "June July August" ${DATADIR}/summer/)</programlisting>
|
||||
(cd ${WRKSRC}/temperatures/ && ${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/ && \
|
||||
${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: <http://www.freebsd.org/ports/portaudit/74a9541d-5d6c-11d8-80e3-00
|
|||
<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>
|
||||
|
|
Loading…
Reference in a new issue