From: Han-Wen Nienhuys Date: Fri, 6 Jan 2006 19:30:01 +0000 (+0000) Subject: (invokes_lilypond): allow . in path to X-Git-Tag: release/2.7.27~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5200e46ce9ab35074b1c3c447c507b06a2ea6eb0;p=lilypond.git (invokes_lilypond): allow . in path to lilypond binary too. --- diff --git a/ChangeLog b/ChangeLog index b2aabf4ce6..c7b2f8c95b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-01-06 Han-Wen Nienhuys + + * scripts/lilypond-book.py (invokes_lilypond): allow . in path to + lilypond binary too. + +2006-01-05 Han-Wen Nienhuys + + * make/mutopia-rules.make (Module): use LILYPOND_BINARY + 2006-01-06 Jan Nieuwenhuizen * 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: