2005-05-18 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scripts/lilypond-book.py (invokes_lilypond): new function
+ (main): only run fontextract if invokes_lilypond() is true.
+
* lily/function-documentation.cc (ly_add_function_documentation):
duh, use !=
option_string)
return []
+def invokes_lilypond ():
+ return re.search ('^[\'\"0-9A-Za-z/]*lilypond', process_cmd)
+
class Chunk:
def replacement_text (self):
return ''
# UGH
# the --process=CMD switch is a bad idea
# it is too generic for lilypond-book.
- if texstr_names and re.search ('^[0-9A-Za-z/]*lilypond', cmd):
-
+ if texstr_names and invokes_lilypond:
my_system (string.join ([cmd, '--backend texstr',
'snippet-map.ly'] + texstr_names))
for l in texstr_names:
try:
chunks = do_file (file)
- if psfonts_file:
+ if psfonts_file and invokes_lilypond ():
fontextract.verbose = verbose_p
snippet_chunks = filter (lambda x: is_derived_class (x.__class__,
Lilypond_snippet),