From 26ccd4e0842e69057b51280a025c700b9d01ebb3 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sat, 26 Feb 2005 12:41:47 +0000 Subject: [PATCH] (stat): write to .lylog, so as not to overwrite .log. --- ChangeLog | 3 +++ cygwin/lily-wins.py | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index faa69bbab4..74fa48a9df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-02-26 Han-Wen Nienhuys + * 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 diff --git a/cygwin/lily-wins.py b/cygwin/lily-wins.py index 233e22a8b0..fe7fe3aa67 100644 --- a/cygwin/lily-wins.py +++ b/cygwin/lily-wins.py @@ -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))) -- 2.39.5