[gtk-doc] mkpdf: dblatex in cvs just got a --quiet parameter



commit 2df9c2404f0a60e7b7a1a7303803ad8ca782d4e0
Author: Stefan Kost <ensonic users sf net>
Date:   Sun May 1 22:18:49 2011 +0300

    mkpdf: dblatex in cvs just got a --quiet parameter

 gtkdoc-mkpdf.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc-mkpdf.in b/gtkdoc-mkpdf.in
index 78bab72..46e1eb4 100644
--- a/gtkdoc-mkpdf.in
+++ b/gtkdoc-mkpdf.in
@@ -99,6 +99,10 @@ if $is_xml; then
       dblatex_options="-o $module.pdf $imgdirs $document"
       #echo "calling: @DBLATEX@ $dblatex_options"
       if test $verbose = "0"; then
+          @DBLATEX@ 2>&1 --help | grep  >/dev/null "\-\-quiet"
+          if test "$?" = "0"; then
+            dblatex_options="--quiet $dblatex_options";
+          fi;
           @DBLATEX@ 2>&1 >/dev/null $dblatex_options | grep -v 'programlisting or screen'
       else
           { @DBLATEX@ 2>&1 >&3 $dblatex_options | grep -v 'programlisting or screen' >&2; } 3>&1



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