%s
%s
-''' % ( _ ('Copyright (c) %s by') % '2001--2010',
+''' % ( _ ('Copyright (c) %s by') % '2001--2011',
'\n '.join (authors),
_ ("Distributed under terms of the GNU General Public License."),
_ ("It comes with NO WARRANTY.")))
action='store',
dest='process_cmd', default='')
+ p.add_option ('-s', '--safe', help=_ ("Compile snippets in safe mode"),
+ action="store_true",
+ default=False,
+ dest="safe_mode")
+
p.add_option ('--skip-lily-check',
help=_ ("do not fail if no lilypond output is found"),
metavar=_ ("DIR"),
def do_file (input_filename, included=False):
# Ugh.
+ input_absname = input_filename
if not input_filename or input_filename == '-':
in_handle = sys.stdin
input_fullname = '<stdin>'
# Otherwise, "lilypond-book -o out test.tex" will complain that it is
# overwriting the input file (which it is actually not), since the
# input filename is relative to the CWD...
- input_fullname = os.path.abspath (input_fullname)
+ input_absname = os.path.abspath (input_fullname)
note_input_file (input_fullname)
in_handle = file (input_fullname)
input_base + global_options.formatter.default_extension)
if (os.path.exists (input_filename)
and os.path.exists (output_filename)
- and samefile (output_filename, input_fullname)):
+ and samefile (output_filename, input_absname)):
error (
_ ("Output would overwrite input file; use --output."))
exit (2)