From b8492f45faea5b59504635322460073cc456640f Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 26 Apr 2018 07:54:04 -0700 Subject: 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 Signed-off-by: Richard Purdie --- documentation/tools/eclipse-help.sed | 10 +++++----- 1 file 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 @@ -# Processes poky-ref-manual and yocto-project-qs manual (-- style) +# Process poky-ref-manual and yocto-project-qs manual (-- style) # For example: # "ulink" href="http://www.yoctoproject.org/docs/1.3/poky-ref-manual/poky-ref-manual.html#faq" # -> "link" href="../poky-ref-manual/faq.html" -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 +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 # Processes all other manuals (- style) # For example: # "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html#faq" # -> "link" href="../kernel-manual/faq.html" -s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/[^\/]*\/\([a-z]*-[a-z]*\)\/[a-z]*-[a-z]*.html#\([^\"]*\)\"/\"link\" href=\"\.\.\/\1\/\2.html\"/g +s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html#([^"]*)"@"link" href="../1/2.html"@g # Process cases where just an external manual is referenced without an id anchor # For example: # "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html # -> "link" href="../kernel-manual/index.html" -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 -s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/[^\/]*\/\([a-z]*-[a-z]*\)\/[a-z]*-[a-z]*.html\"/\"link\" href=\"\.\.\/\1\/index.html\"/g +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 +s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html"@"link" href="../1/index.html"@g -- cgit v1.2.3-54-g00ecf