]> git.donarmstrong.com Git - lilypond.git/commitdiff
(stat): write to .lylog, so as not to
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 26 Feb 2005 12:41:47 +0000 (12:41 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 26 Feb 2005 12:41:47 +0000 (12:41 +0000)
overwrite .log.

ChangeLog
cygwin/lily-wins.py

index faa69bbab4e17e66debc12c86b17fb8e6cbf105e..74fa48a9df43cf7a9513e4272b3aa3bb298655a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-02-26  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * cygwin/lily-wins.py (stat): write to .lylog, so as not to
+       overwrite .log. 
+
        * lily/main.cc: remove -m, --no-layout
 
        * flower/include/libc-extension.hh: add ALIAS_FILE_TO_FILECOOKIE
index 233e22a8b024be5b45de101e76bd95661039baec..fe7fe3aa67741790490cbf3c4e7e4d5bd0d5bb4c 100644 (file)
@@ -113,18 +113,18 @@ script = '/usr/bin/lilypond'
 if os.path.exists ('/usr/bin/ly2dvi'):
        script = '/usr/bin/ly2dvi'
 
-stat = system ('%s %s > %s.log 2>&1' % (script, escape_shell (base),
+stat = system ('%s %s > %s.lylog 2>&1' % (script, escape_shell (base),
                                    escape_shell (stem)))
 
 if not os.path.exists (pdffile):
        # message box?
        sys.stderr.write ('PDF output not found. Error log: \n')
 
-       map (sys.stderr.write, open (stem + '.log').readlines ()[-20:])
-       sys.stderr.write ('A full log is in the file %s.log\n' % stem)
+       map (sys.stderr.write, open (stem + '.lylog').readlines ()[-20:])
+       sys.stderr.write ('A full log is in the file %s.lylog\n' % stem)
        sys.stderr.write ('\n\nPress enter to close window\n')
        sys.stdin.readline ()
 else:
        
-       # run even if failed, to make sure that error 
+       # run even if failed, to make sure that error is visible.
        system ('%s %s.pdf' % (escape_shell (pdfview), escape_shell (native_base)))