diff options
author | Peter Simons <simons@cryp.to> | 2009-08-01 11:47:14 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2009-08-01 11:47:14 +0200 |
commit | ba53e70b46214d6e9632a6f6fe6d8a401f6dc93a (patch) | |
tree | eee47e45ab40e6913fb93782239e09116c1003cf /macro2html.py | |
parent | 1b2c43c2e108c74e57e55729fc6e14654b584300 (diff) | |
download | autoconf-archive-ba53e70b46214d6e9632a6f6fe6d8a401f6dc93a.tar.gz |
macro2html.py: add an appropriate message to the HTML pages of obsolete macros
Diffstat (limited to 'macro2html.py')
-rwxr-xr-x | macro2html.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macro2html.py b/macro2html.py index d49d9c9..8e14bf7 100755 --- a/macro2html.py +++ b/macro2html.py @@ -41,6 +41,7 @@ tmpl = """\ <h1> %(name)s </h1> +%(obsolete)s <h2> SYNOPSIS </h2> @@ -101,6 +102,10 @@ if len(sys.argv) != 3: (m4File,outFile) = sys.argv[1:] assert outFile != m4File m = Macro(m4File) +if m.__dict__.get("obsolete"): + m.obsolete = "<h2>Obsolete Macro</h2>" + '\n'.join(map(formatParagraph, m.obsolete)) +else: + m.obsolete = "" m.synopsis = "<br>\n".join([ "<code>%s</code>" % quoteHtml(l) for l in m.synopsis ]) m.description = '\n\n'.join(map(formatParagraph, m.description)) m.description = m.description.replace("</pre>\n\n<pre>", "\n\n") |