All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Michael Opdenacker <michael.opdenacker@bootlin.com>,
	"bitbake-devel@lists.openembedded.org"
	<bitbake-devel@lists.openembedded.org>
Cc: "docs@lists.yoctoproject.org" <docs@lists.yoctoproject.org>
Subject: RE: [bitbake-devel] [PATCH] bitbake-user-manual: fix backslash issues
Date: Sat, 20 Nov 2021 17:53:55 +0000	[thread overview]
Message-ID: <185ef6ca05f246dd88a48b224f153663@axis.com> (raw)
In-Reply-To: <20211119170554.1972442-1-michael.opdenacker@bootlin.com>

> -----Original Message-----
> From: bitbake-devel@lists.openembedded.org <bitbake-devel@lists.openembedded.org> On Behalf Of Michael Opdenacker
> Sent: den 19 november 2021 18:06
> To: bitbake-devel@lists.openembedded.org
> Cc: docs@lists.yoctoproject.org; Michael Opdenacker <michael.opdenacker@bootlin.com>
> Subject: [bitbake-devel] [PATCH] bitbake-user-manual: fix backslash issues
> 
> Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
> ---
>  .../bitbake-user-manual-fetching.rst          | 20 +++++++++----------
>  .../bitbake-user-manual-metadata.rst          | 10 +++++-----
>  2 files changed, 15 insertions(+), 15 deletions(-)
> 
> diff --git a/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst b/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
> index 4396830a..260d43ab 100644
> --- a/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
> +++ b/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
> @@ -84,18 +84,18 @@ fetcher does know how to use HTTP as a transport.
>  Here are some examples that show commonly used mirror definitions::
> 
>     PREMIRRORS ?= "\
> -      bzr://.*/.\*  http://somemirror.org/sources/ \\n \
> -      cvs://.*/.\*  http://somemirror.org/sources/ \\n \
> -      git://.*/.\*  http://somemirror.org/sources/ \\n \
> -      hg://.*/.\*   http://somemirror.org/sources/ \\n \
> -      osc://.*/.\*  http://somemirror.org/sources/ \\n \
> -      p4://.*/.\*   http://somemirror.org/sources/ \\n \
> -     svn://.*/.\*   http://somemirror.org/sources/ \\n"
> +      bzr://.*/.\*  http://somemirror.org/sources/ \n \
> +      cvs://.*/.\*  http://somemirror.org/sources/ \n \
> +      git://.*/.\*  http://somemirror.org/sources/ \n \
> +      hg://.*/.\*   http://somemirror.org/sources/ \n \
> +      osc://.*/.\*  http://somemirror.org/sources/ \n \
> +      p4://.*/.\*   http://somemirror.org/sources/ \n \
> +     svn://.*/.\*   http://somemirror.org/sources/ \n"
> 
>     MIRRORS =+ "\
> -      ftp://.*/.\*   http://somemirror.org/sources/ \\n \
> -      http://.*/.\*  http://somemirror.org/sources/ \\n \
> -      https://.*/.\* http://somemirror.org/sources/ \\n"
> +      ftp://.*/.\*   http://somemirror.org/sources/ \n \
> +      http://.*/.\*  http://somemirror.org/sources/ \n \
> +      https://.*/.\* http://somemirror.org/sources/ \n"

These were all recently corrected in OE-Core to remove the \n as they 
have not been needed for a long time, so I suggest you do the same here.

>  It is useful to note that BitBake
>  supports cross-URLs. It is possible to mirror a Git repository on an
> diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> index 119720d5..46bcfa60 100644
> --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> @@ -104,15 +104,15 @@ Line Joining
> 
>  Outside of :ref:`functions <bitbake-user-manual/bitbake-user-manual-metadata:functions>`,
>  BitBake joins any line ending in
> -a backslash character ("\") with the following line before parsing
> -statements. The most common use for the "\" character is to split
> +a backslash character ("\\") with the following line before parsing
> +statements. The most common use for the "\\" character is to split
>  variable assignments over multiple lines, as in the following example::
> 
>     FOO = "bar \
>            baz \
>            qaz"
> 
> -Both the "\" character and the newline
> +Both the "\\" character and the newline
>  character that follow it are removed when joining lines. Thus, no
>  newline characters end up in the value of ``FOO``.
> 
> @@ -125,7 +125,7 @@ Consider this additional example where the two assignments both assign
> 
>  .. note::
> 
> -   BitBake does not interpret escape sequences like "\n" in variable
> +   BitBake does not interpret escape sequences like "\\n" in variable
>     values. For these to have an effect, the value must be passed to some
>     utility that interprets escape sequences, such as
>     ``printf`` or ``echo -n``.
> @@ -159,7 +159,7 @@ behavior::
>     C = "qux"
>     *At this point, ${A} equals "qux bar baz"*
>     B = "norf"
> -   *At this point, ${A} equals "norf baz"\*
> +   *At this point, ${A} equals "norf baz"*
> 
>  Contrast this behavior with the
>  :ref:`bitbake-user-manual/bitbake-user-manual-metadata:immediate variable
> --
> 2.25.1

//Peter



      reply	other threads:[~2021-11-20 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19 17:05 [PATCH] bitbake-user-manual: fix backslash issues Michael Opdenacker
2021-11-20 17:53 ` Peter Kjellerstedt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=185ef6ca05f246dd88a48b224f153663@axis.com \
    --to=peter.kjellerstedt@axis.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=docs@lists.yoctoproject.org \
    --cc=michael.opdenacker@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.