diff options
author | Scott Rifenbark <srifenbark@gmail.com> | 2018-04-26 07:54:04 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-24 17:16:28 +0100 |
commit | b8492f45faea5b59504635322460073cc456640f (patch) | |
tree | 038e7752826389a610f38ad8b861cd25366813d8 /documentation/tools/eclipse-help.sed | |
parent | 15353f7d81b50eea439847adf80441165a7c1d26 (diff) | |
download | poky-b8492f45faea5b59504635322460073cc456640f.tar.gz |
eclipse-help.sed: Cleaned up delimiters for readability.
No need to escape out quote characters in a .sed file. Also, using
the @ character is cleaner.
(From yocto-docs rev: f87ca83a6faf5b772d719cd03d6fa0a9b21174bb)
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/tools/eclipse-help.sed')
-rw-r--r-- | documentation/tools/eclipse-help.sed | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/documentation/tools/eclipse-help.sed b/documentation/tools/eclipse-help.sed index 38690bc938..ab5c9affd4 100644 --- a/documentation/tools/eclipse-help.sed +++ b/documentation/tools/eclipse-help.sed | |||
@@ -1,18 +1,18 @@ | |||
1 | # Processes poky-ref-manual and yocto-project-qs manual (<word>-<word>-<word> style) | 1 | # Process poky-ref-manual and yocto-project-qs manual (<word>-<word>-<word> style) |
2 | # For example: | 2 | # For example: |
3 | # "ulink" href="http://www.yoctoproject.org/docs/1.3/poky-ref-manual/poky-ref-manual.html#faq" | 3 | # "ulink" href="http://www.yoctoproject.org/docs/1.3/poky-ref-manual/poky-ref-manual.html#faq" |
4 | # -> "link" href="../poky-ref-manual/faq.html" | 4 | # -> "link" href="../poky-ref-manual/faq.html" |
5 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/[^\/]*\/\([a-z]*-[a-z]*-[a-z]*\)\/[a-z]*-[a-z]*-[a-z]*.html#\([^\"]*\)\"/\"link\" href=\"\.\.\/\1\/\2.html\"/g | 5 | s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*-[a-z]*)/[a-z]*-[a-z]*-[a-z]*.html#([^"]*)"/@"link" href="../1/2.html"@g |
6 | 6 | ||
7 | # Processes all other manuals (<word>-<word> style) | 7 | # Processes all other manuals (<word>-<word> style) |
8 | # For example: | 8 | # For example: |
9 | # "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html#faq" | 9 | # "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html#faq" |
10 | # -> "link" href="../kernel-manual/faq.html" | 10 | # -> "link" href="../kernel-manual/faq.html" |
11 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/[^\/]*\/\([a-z]*-[a-z]*\)\/[a-z]*-[a-z]*.html#\([^\"]*\)\"/\"link\" href=\"\.\.\/\1\/\2.html\"/g | 11 | s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html#([^"]*)"@"link" href="../1/2.html"@g |
12 | 12 | ||
13 | # Process cases where just an external manual is referenced without an id anchor | 13 | # Process cases where just an external manual is referenced without an id anchor |
14 | # For example: | 14 | # For example: |
15 | # "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html | 15 | # "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html |
16 | # -> "link" href="../kernel-manual/index.html" | 16 | # -> "link" href="../kernel-manual/index.html" |
17 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/[^\/]*\/\([a-z]*-[a-z]*-[a-z]*\)\/[a-z]*-[a-z]*-[a-z]*.html\"/\"link\" href=\"\.\.\/\1\/index.html\"/g | 17 | s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*-[a-z]*)/[a-z]*-[a-z]*-[a-z]*.html"@"link" href="../1/index.html"@g |
18 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/[^\/]*\/\([a-z]*-[a-z]*\)\/[a-z]*-[a-z]*.html\"/\"link\" href=\"\.\.\/\1\/index.html\"/g | 18 | s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html"@"link" href="../1/index.html"@g |