[tracker/wip/carlosg/domain-ontologies: 60/116] docs: Do not add copyright by default on the ontology doc tool



commit 504bb930c420a882d0620f674e7664e1587b29c9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 15 21:08:55 2017 +0200

    docs: Do not add copyright by default on the ontology doc tool
    
    Even less that one. The doc tool is not in the position to decide the
    ontology copyright at all.

 docs/tools/ttl_sgml.c |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/docs/tools/ttl_sgml.c b/docs/tools/ttl_sgml.c
index 3526e9d..2372c1b 100644
--- a/docs/tools/ttl_sgml.c
+++ b/docs/tools/ttl_sgml.c
@@ -22,10 +22,6 @@
 
 #include "ttl_sgml.h"
 
-#define DEFAULT_COPYRIGHT "&copy; 2009, 2010 <ulink url=\"http://www.nokia.com/\";>Nokia</ulink>"
-
-#define SIGNALS_DOC "http://live.gnome.org/Tracker/Documentation/SignalsOnChanges";
-
 typedef struct {
        Ontology *ontology;
        OntologyDescription *description;
@@ -115,12 +111,14 @@ print_sgml_header (FILE *f, OntologyDescription *desc)
         print_link_as_varlistentry (f, "Upstream:", "Upstream version", desc->upstream);
         print_link_as_varlistentry (f, "ChangeLog:", "Tracker changes", desc->gitlog);
 
-        g_fprintf (f, "<varlistentry>\n");
-        g_fprintf (f, "  <term>Copyright:</term>\n");
-        g_fprintf (f, "  <listitem>\n");
-        g_fprintf (f, "<para>%s</para>\n", (desc->copyright ? desc->copyright : DEFAULT_COPYRIGHT));
-        g_fprintf (f, "  </listitem>\n");
-        g_fprintf (f, "</varlistentry>\n");
+        if (desc->copyright) {
+               g_fprintf (f, "<varlistentry>\n");
+               g_fprintf (f, "  <term>Copyright:</term>\n");
+               g_fprintf (f, "  <listitem>\n");
+               g_fprintf (f, "<para>%s</para>\n", desc->copyright);
+               g_fprintf (f, "  </listitem>\n");
+               g_fprintf (f, "</varlistentry>\n");
+        }
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]