diff options
author | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2006-01-06 19:30:01 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2006-01-06 19:30:01 +0000 |
commit | 5200e46ce9ab35074b1c3c447c507b06a2ea6eb0 (patch) | |
tree | 3068f4d4f09cda11c0a0fa9efee817888052a223 | |
parent | 77fe21c1a8b8bd250a824525183ece3c36d81431 (diff) |
(invokes_lilypond): allow . in path to
lilypond binary too.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | make/lilypond-vars.make | 7 | ||||
-rw-r--r-- | scripts/lilypond-book.py | 4 |
3 files changed, 17 insertions, 3 deletions
@@ -1,3 +1,12 @@ +2006-01-06 Han-Wen Nienhuys <hanwen@xs4all.nl> + + * scripts/lilypond-book.py (invokes_lilypond): allow . in path to + lilypond binary too. + +2006-01-05 Han-Wen Nienhuys <hanwen@xs4all.nl> + + * make/mutopia-rules.make (Module): use LILYPOND_BINARY + 2006-01-06 Jan Nieuwenhuizen <janneke@gnu.org> * make/ly-rules.make: diff --git a/make/lilypond-vars.make b/make/lilypond-vars.make index 13d5e46262..bd8d172f2e 100644 --- a/make/lilypond-vars.make +++ b/make/lilypond-vars.make @@ -7,7 +7,12 @@ export LILYPONDPREFIX:=$(build_lilypond_datadir)/$(TOPLEVEL_VERSION) export DVIPSHEADERS:=$(top-build-dir)/mf/out:: export LILYPOND_BINARY=$(top-build-dir)/lily/$(outconfbase)/lilypond else -export PATH:=$(dir $(LILYPOND_EXTERNAL_BINARY)):$(PATH) + +## better not take the binaries from a precompiled bundle, as they +## rely on env vars for relocation. +## + +#export PATH:=$(dir $(LILYPOND_EXTERNAL_BINARY)):$(PATH) export LILYPOND_BINARY=$(LILYPOND_EXTERNAL_BINARY) endif diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 75c5c14c81..7d8fc2de13 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -674,7 +674,7 @@ def split_options (option_string): return [] def invokes_lilypond (): - return re.search ('^[\'\"0-9A-Za-z/]*lilypond', process_cmd) + return re.search ('^[\'\"0-9A-Za-z/.]*lilypond', process_cmd) def set_default_options (source): global default_ly_options @@ -1301,7 +1301,7 @@ def process_snippets (cmd, ly_snippets, texstr_snippets, png_snippets): # UGH # the --process=CMD switch is a bad idea # it is too generic for lilypond-book. - if texstr_names and invokes_lilypond: + if texstr_names and invokes_lilypond (): my_system (string.join ([cmd, '--backend texstr', 'snippet-map.ly'] + texstr_names)) for l in texstr_names: |