summaryrefslogtreecommitdiffstats
path: root/documentation/migration-guides/migration-1.4.rst
diff options
context:
space:
mode:
authorQuentin Schulz <foss@0leil.net>2021-05-27 20:41:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-19 16:54:01 +0100
commit7d3f57cfd2e4322bcd96d67d330124f221a9aedd (patch)
tree5d07321b7c8bc59bb7fcc0372fab8b7a1966cf06 /documentation/migration-guides/migration-1.4.rst
parent7a9b74e9d2a5cf3b1fb3ac7565c50eae6e0d4632 (diff)
downloadpoky-7d3f57cfd2e4322bcd96d67d330124f221a9aedd.tar.gz
docs: replace ``FOO`` by :term:`FOO` where possible
If a variable has a glossary entry and some rST files write about those variables, it's better to point to the glossary entry instead of just highlighting it by surrounding it with two tick quotes. This was automated by the following python script: """ import re from pathlib import Path with open('objects.inv.txt', 'r') as f: objects = f.readlines() with open('bitbake-objects.inv.txt', 'r') as f: objects = objects + f.readlines() re_term = re.compile(r'variables.html#term-([A-Z_0-9]*)') terms = [] for obj in objects: match = re_term.search(obj) if match and match.group(1): terms.append(match.group(1)) for rst in Path('.').rglob('*.rst'): with open(rst, 'r') as f: content = "".joing(f.readlines()) for term in terms: content = re.sub(r'``({})``(?!.*\s*[~-]+)'.format(term), r':term:`\1`', content) with open(rst, 'w') as f: f.write(content) """ (From yocto-docs rev: ba49d9babfcb84bc5c26a68c8c3880a1d9c236d3) Signed-off-by: Quentin Schulz <foss@0leil.net> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Reviewed-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/migration-guides/migration-1.4.rst')
-rw-r--r--documentation/migration-guides/migration-1.4.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/documentation/migration-guides/migration-1.4.rst b/documentation/migration-guides/migration-1.4.rst
index 07dd93b761..3f980915cf 100644
--- a/documentation/migration-guides/migration-1.4.rst
+++ b/documentation/migration-guides/migration-1.4.rst
@@ -28,7 +28,7 @@ Differences include the following:
28 and uninstall script functions ``pkg_preinst``, ``pkg_postinst``, 28 and uninstall script functions ``pkg_preinst``, ``pkg_postinst``,
29 ``pkg_prerm``, and ``pkg_postrm`` should always have a package name 29 ``pkg_prerm``, and ``pkg_postrm`` should always have a package name
30 override. For example, use ``RDEPENDS_${PN}`` for the main package 30 override. For example, use ``RDEPENDS_${PN}`` for the main package
31 instead of ``RDEPENDS``. BitBake uses more strict checks when it 31 instead of :term:`RDEPENDS`. BitBake uses more strict checks when it
32 parses recipes. 32 parses recipes.
33 33
34.. _migration-1.4-build-behavior: 34.. _migration-1.4-build-behavior:
@@ -53,10 +53,10 @@ Differences include the following:
53 :term:`SRC_URI`, the build system now uses 53 :term:`SRC_URI`, the build system now uses
54 :term:`FILESOVERRIDES` instead of 54 :term:`FILESOVERRIDES` instead of
55 :term:`OVERRIDES` for the directory names. In 55 :term:`OVERRIDES` for the directory names. In
56 general, the values previously in ``OVERRIDES`` are now in 56 general, the values previously in :term:`OVERRIDES` are now in
57 ``FILESOVERRIDES`` as well. However, if you relied upon an additional 57 :term:`FILESOVERRIDES` as well. However, if you relied upon an additional
58 value you previously added to ``OVERRIDES``, you might now need to 58 value you previously added to :term:`OVERRIDES`, you might now need to
59 add it to ``FILESOVERRIDES`` unless you are already adding it through 59 add it to :term:`FILESOVERRIDES` unless you are already adding it through
60 the :term:`MACHINEOVERRIDES` or 60 the :term:`MACHINEOVERRIDES` or
61 :term:`DISTROOVERRIDES` variables, as 61 :term:`DISTROOVERRIDES` variables, as
62 appropriate. For more related changes, see the 62 appropriate. For more related changes, see the
@@ -105,7 +105,7 @@ Variables
105 105
106The following variables have changed: 106The following variables have changed:
107 107
108- ``SANITY_TESTED_DISTROS``: This variable now uses a distribution 108- :term:`SANITY_TESTED_DISTROS`: This variable now uses a distribution
109 ID, which is composed of the host distributor ID followed by the 109 ID, which is composed of the host distributor ID followed by the
110 release. Previously, 110 release. Previously,
111 :term:`SANITY_TESTED_DISTROS` was 111 :term:`SANITY_TESTED_DISTROS` was
@@ -114,7 +114,7 @@ The following variables have changed:
114 you are not specifically setting this variable, or if you are 114 you are not specifically setting this variable, or if you are
115 specifically setting it to "". 115 specifically setting it to "".
116 116
117- ``SRC_URI``: The ``${``\ :term:`PN`\ ``}``, 117- :term:`SRC_URI`: The ``${``\ :term:`PN`\ ``}``,
118 ``${``\ :term:`PF`\ ``}``, 118 ``${``\ :term:`PF`\ ``}``,
119 ``${``\ :term:`P`\ ``}``, and ``FILE_DIRNAME`` directories 119 ``${``\ :term:`P`\ ``}``, and ``FILE_DIRNAME`` directories
120 have been dropped from the default value of the 120 have been dropped from the default value of the