+2005-07-13 Yoshinobu Isizaki <isizaki@mte.biglobe.ne.jp>
+
+ * scripts/lilypond-book.py: Prevent occuring error when
+ 'lilypond-book --output=foo/ somefile.ly' is executed multiple
+ times and target file shoud be overwritten. (Error message said
+ 'input file and output file is same'.)
+
2005-07-13 Graham Percival <gperlist@shaw.ca>
* input/regression/slur-extreme.ly, input/regression/slur-scoring.ly,
* Documentation/user/converters.itely: fix URL for Noteedit and Rosegarden.
+ * THANKS: added Yoshinobu Isizaki.
+
2005-07-12 Han-Wen Nienhuys <hanwen@xs4all.nl>
* scm/define-markup-commands.scm (justify-field): add.
output_filename = '-'
output_file = sys.stdout
else:
+ # don't complain when output_name is existing
+ output_filename = input_base + format2ext[format]
if output_name:
if not os.path.isdir (output_name):
os.mkdir (output_name, 0777)
os.chdir (output_name)
-
- output_filename = input_base + format2ext[format]
- if os.path.exists (input_filename) \
- and os.path.exists (output_filename) \
- and os.path.samefile (output_filename, input_fullname):
- ly.error (
- _ ("Output would overwrite input file; use --output."))
- ly.exit (2)
+ else:
+ if os.path.exists (input_filename) \
+ and os.path.exists (output_filename) \
+ and os.path.samefile (output_filename, input_fullname):
+ ly.error (
+ _ ("Output would overwrite input file; use --output."))
+ ly.exit (2)
try:
ly.progress (_ ("Reading %s...") % input_fullname)