- Document the usage of the third argument to the COPYTREE_* macros.
This commit is contained in:
parent
203fd6a41f
commit
cb32dee8c3
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=29915
1 changed files with 10 additions and 0 deletions
|
@ -4102,6 +4102,16 @@ PORTVERSION= 1.0</programlisting>
|
|||
<filename>summer</filename> subdirectory of a
|
||||
<filename><makevar>DATADIR</makevar></filename>.</para>
|
||||
|
||||
<para>Additional <command>find</command> arguments can be passed via
|
||||
the third argument to the <makevar>COPYTREE_*</makevar> macros.
|
||||
For example, to install all files from the first example except
|
||||
Makefiles, one can use the following command.</para>
|
||||
|
||||
<programlisting>post-install:
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/examples/ && \
|
||||
${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 them.</para>
|
||||
|
||||
|
|
Loading…
Reference in a new issue