[ovs-dev] [PATCH] ovsdb-doc: Omit E-R diagram from ASCII version of manpage.

Ben Pfaff blp at nicira.com
Tue May 24 19:42:40 UTC 2011


The E-R diagram is illegible when rendered in ASCII, so exclude it.
---
 ovsdb/ovsdb-doc.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ovsdb/ovsdb-doc.in b/ovsdb/ovsdb-doc.in
index 3c825d2..2577e78 100755
--- a/ovsdb/ovsdb-doc.in
+++ b/ovsdb/ovsdb-doc.in
@@ -286,6 +286,7 @@ Table	Purpose
 
     if erFile:
         s += """
+.if !'\*[.T]'ascii' \{
 .sp 1
 .SH "TABLE RELATIONSHIPS"
 .PP
@@ -303,7 +304,7 @@ represent strong references; thin lines represent weak references.
         for line in erStream:
             s += line + '\n'
         erStream.close()
-        s += ".RE\n"
+        s += ".RE\\}\n"
 
     for node in tableNodes:
         s += tableToNroff(schema, node) + "\n"
-- 
1.7.4.4




More information about the dev mailing list