]> git.donarmstrong.com Git - lilypond.git/commitdiff
(read_pipe): only store and display error log
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 27 Aug 2003 20:47:52 +0000 (20:47 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 27 Aug 2003 20:47:52 +0000 (20:47 +0000)
if verbose not set.
(read_pipe): only display log if it contains something.

ChangeLog
input/test/move-notehead.ly [new file with mode: 0644]
input/test/tie-cross-voice.ly [new file with mode: 0644]
python/lilylib.py

index 54dd12bce40b0f2ca21c38bb75b58e28c021b0d7..02922cea43e4069cffdb3633b161d68a073890d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-27  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+       * python/lilylib.py (read_pipe): only store and display error log
+       if verbose not set.
+       (read_pipe): only display log if it contains something.
+
 2003-08-27  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * Documentation/misc/GNUmakefile: Re-add.
diff --git a/input/test/move-notehead.ly b/input/test/move-notehead.ly
new file mode 100644 (file)
index 0000000..9a2117f
--- /dev/null
@@ -0,0 +1,23 @@
+
+\version "1.9.1"
+\header { texidoc = "@cindex Scheme Move Notehead
+
+You can move objects around with the property extra-offset.  This
+example shows how to move noteheads around.  It uses the
+@code{\outputproperty} command.
+
+" }
+
+fragment = \notes {
+    \outputproperty #(make-type-checker 'note-head-interface)
+      #'extra-offset = #'(2 . 3)
+    c''2 c
+}
+
+\paper { raggedright = ##t} 
+
+\score {
+  \notes\relative c \fragment
+  \paper { }  
+}
+
diff --git a/input/test/tie-cross-voice.ly b/input/test/tie-cross-voice.ly
new file mode 100644 (file)
index 0000000..45e02d8
--- /dev/null
@@ -0,0 +1,22 @@
+#(ly:set-option 'old-relative)
+\version "1.9.1"
+
+
+
+\header {
+    texidoc = "Cross voice ties can be faked by blanking noteheads."
+    }
+
+
+\score {
+\context Staff \notes {
+\relative c''  <
+  {
+      \once \property Voice.Stem \set #'transparent = ##t
+      b8~ b8 }
+  \\
+  { b[ g8] }
+>
+}
+\paper { raggedright = ##t }
+}
index 89104b84e9aa2a4e41e9d525718ae7f27bb0f0f0..e705cb1e15e77d994fb59521bfe11ce5acf3243c 100644 (file)
@@ -241,10 +241,13 @@ def error_log (name):
        return tempfile.mktemp ('%s.errorlog' % name)
 
 def read_pipe (cmd, mode = 'r'):
+       
+       
        redirect = ''
        error_log_file = ''
        if __main__.verbose_p:
                progress (_ ("Opening pipe `%s\'") % cmd)
+       else:
                error_log_file = error_log (command_name (cmd))
                redirect = ' 2>%s' % error_log_file
                
@@ -259,9 +262,12 @@ def read_pipe (cmd, mode = 'r'):
 
        if status:
                error (_ ("`%s\' failed (%d)") % (cmd, exit_status))
+               
                if not __main__.verbose_p:
-                       error (_ ("The error log is as follows:"))
-                       sys.stderr.write (open (error_log (command_name (cmd)).read ()))
+                       contents = open (error_log_file).read ()
+                       if contents:
+                               error (_ ("The error log is as follows:"))
+                               sys.stderr.write (contents)
                exit (status)
                
        if __main__.verbose_p: