* 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 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * 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 <hanwen@xs4all.nl>
* scm/part-combiner.scm (determine-split-list): switch off
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
('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')))
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 ());
+}
+
(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"))