[GTK] GtkDoc build should be quieter
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Dec 2016 13:02:54 +0000 (13:02 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Dec 2016 13:02:54 +0000 (13:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=165994

Reviewed by Carlos Garcia Campos.

Make it not print by default.

* gtk/generate-gtkdoc:
(get_generator_for_config):
(generate_doc):
* gtk/gtkdoc.py:
(GTKDoc._run_command):
(GTKDoc._copy_doc_files_to_output_dir):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209981 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/gtk/generate-gtkdoc
Tools/gtk/gtkdoc.py

index f8cd369..42cd6bf 100644 (file)
@@ -1,3 +1,19 @@
+2016-12-19  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        [GTK] GtkDoc build should be quieter
+        https://bugs.webkit.org/show_bug.cgi?id=165994
+
+        Reviewed by Carlos Garcia Campos.
+
+        Make it not print by default.
+
+        * gtk/generate-gtkdoc:
+        (get_generator_for_config):
+        (generate_doc):
+        * gtk/gtkdoc.py:
+        (GTKDoc._run_command):
+        (GTKDoc._copy_doc_files_to_output_dir):
+
 2016-12-18  Simon Fraser  <simon.fraser@apple.com>
 
         Expose a way for MiniBrowser to simulate header and footer banners
index 2abd95b..33b2824 100755 (executable)
@@ -129,14 +129,12 @@ def get_generator_for_config(config_file, virtual_root, cross_reference_deps = [
     })
 
 def generate_doc(generator, skip_html):
-    print("\nGenerating {0} documentation...".format(generator.module_name))
     generator.generate(not skip_html)
     if generator.saw_warnings:
         print_missing_api(generator)
     return generator.saw_warnings
 
 def rebase_doc(generator):
-    print("\nRebasing {0} documentation...".format(generator.module_name))
     try:
         generator.rebase_installed_docs()
     except Exception:
index 4c8237b..38f6be7 100644 (file)
@@ -182,7 +182,7 @@ class GTKDoc(object):
             answer = raw_input(question).lower()
         return answer == 'y'
 
-    def _run_command(self, args, env=None, cwd=None, print_output=True, ignore_warnings=False):
+    def _run_command(self, args, env=None, cwd=None, print_output=False, ignore_warnings=False):
         if print_output:
             self.logger.info("Running %s", args[0])
         self.logger.debug("Full command args: %s", str(args))
@@ -243,14 +243,14 @@ class GTKDoc(object):
                 copy_file_replacing_existing(os.path.join(src, path),
                                              os.path.join(dest, path))
 
-        self.logger.info('Copying template files to output directory...')
+        self.logger.debug('Copying template files to output directory...')
         self._create_directory_if_nonexistent(self.output_dir)
         copy_all_files_in_directory(self.doc_dir, self.output_dir)
 
         if not html:
             return
 
-        self.logger.info('Copying HTML files to output directory...')
+        self.logger.debug('Copying HTML files to output directory...')
         html_src_dir = os.path.join(self.doc_dir, 'html')
         html_dest_dir = os.path.join(self.output_dir, 'html')
         self._create_directory_if_nonexistent(html_dest_dir)