diff options
author | rillig <rillig@pkgsrc.org> | 2020-02-09 19:06:12 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-02-09 19:06:12 +0000 |
commit | 05943a1bf5386e272941c6698e2f008811c9b103 (patch) | |
tree | a7cee326aee24c112a1ad8eda9439a1b573e187f | |
parent | 9c989c37c282980d2b4ea55bb29ba6cfb724ce68 (diff) | |
download | pkgsrc-05943a1bf5386e272941c6698e2f008811c9b103.tar.gz |
doc/guide: don't suggest patch files against /dev/null
These patches would be much harder to edit and read than ordinary files.
Also recommend to copy these files in post-extract instead of
pre-configure, since extract is used for putting all files in place.
-rw-r--r-- | doc/guide/files/components.xml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/doc/guide/files/components.xml b/doc/guide/files/components.xml index c4555b1aa65..e37bd43524a 100644 --- a/doc/guide/files/components.xml +++ b/doc/guide/files/components.xml @@ -1,4 +1,4 @@ -<!-- $NetBSD: components.xml,v 1.57 2019/08/18 16:35:16 rillig Exp $ --> +<!-- $NetBSD: components.xml,v 1.58 2020/02/09 19:06:12 rillig Exp $ --> <chapter id="components"> <?dbhtml filename="components.html"?> <title>Package components - files, directories and contents</title> @@ -691,13 +691,10 @@ MESSAGE_SUBST+= SOMEVAR="somevalue" <sect1 id="files-dir"> <title><filename>files/*</filename></title> - <para>If you have any files that you wish to be placed in the package prior - to configuration or building, you could place these files here and use - a <command>${CP}</command> command in the - <quote>pre-configure</quote> target to achieve - this. Alternatively, you could simply diff the file against - <filename>/dev/null</filename> and use the patch mechanism to manage - the creation of this file.</para> + <para>If you have any files that you wish to be placed in the package + prior to configuration or building, you can place these files here + and use a <command>${CP}</command> command in the + <quote>post-extract</quote> target to achieve this.</para> <para>If you want to share files in this way with other packages, set the <varname>FILESDIR</varname> variable to point |