eclipse-help.sed 1.3 KB

123456789101112131415161718
  1. # Processes poky-ref-manual and yocto-project-qs manual (<word>-<word>-<word> style)
  2. # For example:
  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"
  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. # Processes all other manuals (<word>-<word> style)
  7. # For example:
  8. # "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html#faq"
  9. # -> "link" href="../kernel-manual/faq.html"
  10. s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/[^\/]*\/\([a-z]*-[a-z]*\)\/[a-z]*-[a-z]*.html#\([^\"]*\)\"/\"link\" href=\"\.\.\/\1\/\2.html\"/g
  11. # Process cases where just an external manual is referenced without an id anchor
  12. # For example:
  13. # "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html
  14. # -> "link" href="../kernel-manual/index.html"
  15. 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
  16. s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/[^\/]*\/\([a-z]*-[a-z]*\)\/[a-z]*-[a-z]*.html\"/\"link\" href=\"\.\.\/\1\/index.html\"/g