diff options
author | Anders Svensson <[email protected]> | 2011-08-18 11:58:45 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-10-07 11:09:20 +0200 |
commit | dce08a5f07935e89f8d049376ff660cf59184e85 (patch) | |
tree | d4f72869d0fe2aa307e28b740d26d0e860868d15 | |
parent | d01551f400e2a7944dcc10319be0c9f248ca3179 (diff) | |
download | otp-dce08a5f07935e89f8d049376ff660cf59184e85.tar.gz otp-dce08a5f07935e89f8d049376ff660cf59184e85.tar.bz2 otp-dce08a5f07935e89f8d049376ff660cf59184e85.zip |
Simplify depend.sed for better compatibility
Sed on Solaris doesn't remember matches after branching.
-rw-r--r-- | lib/diameter/doc/src/depend.sed | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/diameter/doc/src/depend.sed b/lib/diameter/doc/src/depend.sed index 5973c4586e..42de597f15 100644 --- a/lib/diameter/doc/src/depend.sed +++ b/lib/diameter/doc/src/depend.sed @@ -21,14 +21,18 @@ # massaged in Makefile. # -/^<com>\([^<]*\)<\/com>/b rf -/^<module>\([^<]*\)<\/module>/b rf +/^<com>/b c +/^<module>/b c /^<chapter>/!d +# Chapter: html basename is same as xml. s@@$(HTMLDIR)/%FILE%.html: %FILE%.xml@ q -:rf -s@@$(HTMLDIR)/\1.html: %FILE%.xml@ +# Reference: html basename is from contents of com/module element. +:c +s@^[^>]*>@@ +s@<.*@@ +s@.*@$(HTMLDIR)/&.html: %FILE%.xml@ q |