- Document the usage of the third argument to the COPYTREE_* macros.

This commit is contained in:
Stanislav Sedov 2007-04-02 21:57:39 +00:00
parent 203fd6a41f
commit cb32dee8c3
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=29915

View file

@ -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>