commandline args with contains, split by \n.
* scripts/lilypond-book.py (Lilypond_file_snippet.my_system):
write snippet-names file, call with -dread-file-list. Fixes
command limitations on 64-bit systems.
* scripts/lilypond-book.py (main): add --formats=eps for
texinfo/latex.
2006-08-19 Han-Wen Nienhuys <hanwen@lilypond.org>
+ * scm/lily.scm (lilypond-all): option read-file-list: substitute
+ commandline args with contains, split by \n.
+
+ * scripts/lilypond-book.py (Lilypond_file_snippet.my_system):
+ write snippet-names file, call with -dread-file-list. Fixes
+ command limitations on 64-bit systems.
+
* input/regression/stencil-color-rotation.ly: new file.
* lily/include/translator.hh (struct Acknowledge_information):
revert: don't use Protected_scm in global objects, as GUILE can't
- handle gc_unprotect from automated destructors.
+ handle gc_unprotect from automated destructors on MacOS X.
* lily/grob.cc (get_print_stencil): use retval.expr() as base for
color, not the original stencil. Fixes combinations of
{
assert (scm_is_string (str));
return string (scm_i_string_chars (str),
- (int) scm_i_string_length (str));
+ (int) scm_i_string_length (str));
}
char *
"Upon failure, throw @code{ly-file-failed} key.")
{
SCM_ASSERT_TYPE (scm_is_string (name), name, SCM_ARG1, __FUNCTION__, "string");
- char const *file = scm_i_string_chars (name);
+ string file = ly_scm2string (name);
char const *extensions[] = {"ly", "", 0};
string file_name = global_path.find (file, extensions);
*tail = scm_cons (scm_makfrom0str (arg), SCM_EOL);
tail = SCM_CDRLOC (*tail);
}
+
delete option_parser;
option_parser = 0;
"dump GC protection info")
(show-available-fonts #f
"List font names available.")
+ (read-file-list #f "Read files to be processed from command line arguments")
)))
(exit 0)))))
(define-public (lilypond-all files)
+ (if (ly:get-option 'read-file-list)
+ (set! files
+ (filter (lambda (s)
+ (> (string-length s) 0))
+ (apply append
+ (map (lambda (f) (string-split (ly:gulp-file f) #\nl))
+ files)))
+ ))
(if (ly:get-option 'show-available-fonts)
(begin
p.add_option ('-f', '--format',
help=_('''use output format FORMAT (texi [default], texi-html, latex, html)'''),
action='store')
+
p.add_option ("-I", '--include', help=_('add DIR to include path'),
metavar="DIR",
action='append', dest='include_path',
my_system ('latex %s.texstr' % l)
if ly_names:
- my_system (string.join ([cmd, 'snippet-map.ly'] + ly_names))
+ open ('snippet-names', 'w').write ('\n'.join (['snippet-map.ly']
+ + ly_names))
+
+ my_system (string.join ([cmd, 'snippet-names']))
+
LATEX_INSPECTION_DOCUMENT = r'''
\nonstopmode
and global_options.create_pdf):
global_options.process_cmd += "--pdf -deps-font-include -dgs-font-load "
+
if global_options.verbose:
global_options.process_cmd += " --verbose "
+
+ global_options.process_cmd += " -dread-file-list "
+
identify ()
try: