From: Jan Nieuwenhuizen Date: Mon, 28 Mar 2005 21:03:18 +0000 (+0000) Subject: * SConstruct (symlink): X-Git-Tag: release/2.5.17~8 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=da5095934e6c669b718639d5d373eeb7304c2ed7;p=lilypond.git * SConstruct (symlink): * GNUmakefile.in (link-tree): Add scripts to prefix. * lily/general-scheme.cc (ly:effective-prefix): New function. * scm/backend-library.scm (postscript->png): Use it. --- diff --git a/ChangeLog b/ChangeLog index e2889aa3b6..7aceb0fd27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-03-28 Jan Nieuwenhuizen + + * SConstruct (symlink): + * GNUmakefile.in (link-tree): Add scripts to prefix. + + * lily/general-scheme.cc (ly:effective-prefix): New function. + + * scm/backend-library.scm (postscript->png): Use it. + 2005-03-28 Han-Wen Nienhuys * scm/part-combiner.scm (determine-split-list): switch off diff --git a/GNUmakefile.in b/GNUmakefile.in index d28279a5f6..57ad0d9528 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -117,7 +117,8 @@ $(tree-prefix)/lilypond-force: GNUmakefile ln -s $(abs-srcdir)/mf && \ ln -s $(abs-srcdir)/ps && \ ln -s ../../../python/$(outconfbase) python && \ - ln -s $(abs-srcdir)/scm + ln -s $(abs-srcdir)/scm && \ + ln -s $(abs-srcdir)/scripts scripts cd $(tree-prefix)/dvips && \ ln -s ./../../mf/$(outconfbase) mf-out && \ ln -s $(abs-srcdir)/ps diff --git a/SConstruct b/SConstruct index 48250ccb16..29a72d08a7 100644 --- a/SConstruct +++ b/SConstruct @@ -704,6 +704,7 @@ def symlink_tree (target, source, env): ('mf', 'share/lilypond/%(ver)s/tex/mf-out'), ('#ly', 'share/lilypond/%(ver)s/ly'), ('#scm', 'share/lilypond/%(ver)s/scm'), + ('#scripts', 'share/lilypond/%(ver)s/scripts'), ('#ps', 'share/lilypond/%(ver)s/ps'), ('po/@/nl.mo', 'share/locale/nl/LC_MESSAGES/lilypond.mo'), ('elisp', 'share/lilypond/%(ver)s/elisp'))) diff --git a/lily/general-scheme.cc b/lily/general-scheme.cc index 3d89ea5b53..28b851af41 100644 --- a/lily/general-scheme.cc +++ b/lily/general-scheme.cc @@ -228,3 +228,10 @@ LY_DEFINE (ly_wchar_to_utf_8, "ly:wide-char->utf-8", return scm_makfrom0str (buf); } +LY_DEFINE (ly_effective_prefix, "ly:effective-prefix", + 0, 0, 0, (), + "Return effective prefix.") +{ + return scm_makfrom0str (prefix_directory.to_str0 ()); +} + diff --git a/scm/backend-library.scm b/scm/backend-library.scm index ca2b984d88..5920c99776 100644 --- a/scm/backend-library.scm +++ b/scm/backend-library.scm @@ -45,7 +45,8 @@ (ly:system cmd))) (define-public (postscript->png resolution papersizename name) - (let* ((prefix (getenv "LILYPONDPREFIX")) + (let* ((prefix (ly:effective-prefix)) + ;; FIXME: should scripts/ps2png.py be installed in PREFIX? (ps2png-source (if prefix (format "~a/scripts/ps2png.py" prefix) "ps2png"))