]> git.donarmstrong.com Git - lilypond.git/commitdiff
* stepmake/stepmake/omf-targets.make (local-install): add
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 16 Mar 2003 14:59:09 +0000 (14:59 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 16 Mar 2003 14:59:09 +0000 (14:59 +0000)
scrollkeeper-update message.

* scripts/lilypond-book.py (lilypond_binary): explicity add path to binary.
(TexiPaper.process_ly2dvi_block): idem for ly2dvi

* scripts/ly2dvi.py (lilypond_binary): explicity add path to binary.

ChangeLog
GNUmakefile.in
make/lilypond.redhat.spec.in
make/substitute.make
python/lilylib.py
scripts/lilypond-book.py
scripts/ly2dvi.py
stepmake/stepmake/omf-targets.make

index 3ebd4ba3bcca7f33fa7aa410f0a5427856df91d1..b0c57d4c1bf2fd02cb62a2018c835314bbeb799a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2003-03-16  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
+       * stepmake/stepmake/omf-targets.make (local-install): add
+       scrollkeeper-update message.
+
+       * scripts/lilypond-book.py (lilypond_binary): explicity add path to binary.
+       (TexiPaper.process_ly2dvi_block): idem for ly2dvi
+
+       * scripts/ly2dvi.py (lilypond_binary): explicity add path to binary.
+
        * Documentation/user/converters.itely (Invoking midi2ly): add
        track/channel notice.
 
index 26eff5fc19cb5fa82ebac5dbcbe5b5373e18ab8b..93609bb70186335086c1da9b34e240f88a8833cf 100644 (file)
@@ -54,16 +54,13 @@ web-doc: web-reqs
 pfa-fonts:
        $(MAKE) MAKE_PFA_FILES=1 -C mf
 
-
-web-doc-install: web-doc top-web
+install-html-doc: web-doc top-web
        $(INSTALL) -m 755 -d $(local_package_docdir) 
        tar -C $(local_package_docdir)/ -xzf $(outdir)/web.tar.gz
 
-
 # KPATHSEA=0: Hack for compiling without kpathsea -- not recommended
 my_tfm_path = $(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp 
 
-
 local-install:
        $(INSTALL) -d $(local_lilypond_datadir)
 ifeq ($(KPATHSEA),0)
index 07176b3d8ea35e6b99feb769916886c459d87bf7..c5a342153f7dd3cc7e67af62c52f92f0b1032ecc 100644 (file)
@@ -79,7 +79,7 @@ mkdir -p $RPM_BUILD_ROOT/etc/profile.d
 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
 
-make prefix="$RPM_BUILD_ROOT%{_prefix}" web-doc-install
+make prefix="$RPM_BUILD_ROOT%{_prefix}" install-html-doc
 make -C Documentation/user/  prefix="$RPM_BUILD_ROOT%{_prefix}" omf-install
 
 
index 3ffbd9bb29ff31bc56d7590e3d8d97377c62662b..21f626ea3a8ca66e4130bfc2ac026b55e39a7b2e 100644 (file)
@@ -9,6 +9,7 @@ ATVARIABLES = \
   DATE\
   sharedstatedir\
   GUILE\
+  bindir\
   date\
   datadir\
   lilypond_datadir\
index 49078c5ab2aeb13a45c428e9693d1c09e2173527..173d5d60cfba54706d455b8d097f5055bba243ab 100644 (file)
@@ -39,6 +39,8 @@ if os.environ.has_key ('LILYPONDPREFIX') :
 
 sys.path.insert (0, os.path.join (datadir, 'python'))
 
+
+
 # Customize these
 if __name__ == '__main__':
        import lilylib as ly
index bb217b0b93a3462a53f79b87f8cab86c33810048..e9560f36845a164ea83df3f38b6bfdfaef043530 100644 (file)
@@ -138,8 +138,22 @@ option_definitions = [
 include_path = [os.getcwd ()]
 
 
-lilypond_cmd = 'lilypond'
-#lilypond_cmd = 'valgrind --suppressions=/home/hanwen/usr/src/guile-1.6.supp  --num-callers=10 /home/hanwen/usr/src/lilypond/lily/out/lilypond'
+#lilypond_binary = 'valgrind --suppressions=/home/hanwen/usr/src/guile-1.6.supp  --num-callers=10 /home/hanwen/usr/src/lilypond/lily/out/lilypond'
+
+lilypond_binary = os.path.join ('@bindir@', 'lilypond')
+
+# only use installed binary  when we're installed too.
+if '@bindir@' == ('@' + 'bindir@') or not os.path.exists (lilypond_binary):
+       lilypond_binary = 'lilypond'
+
+
+
+ly2dvi_binary = os.path.join ('@bindir@', 'ly2dvi')
+
+# only use installed binary  when we're installed too.
+if '@bindir@' == ('@' + 'bindir@') or not os.path.exists (lilypond_binary):
+       lilypond_binary = 'ly2dvi'
+
 
 
 g_extra_opts = ''
@@ -1151,7 +1165,8 @@ linking to the menu.
 
                preview = base + ".png"
                if changed or not os.path.isfile (preview):
-                       ly.system ('ly2dvi --preview --postscript --verbose %s ' % base) 
+                       
+                       ly.system ('%s --preview --postscript --verbose %s ' % (ly2dvi_binary, base) ) 
 
                        ly.make_page_images (base)
                        ly.system ('gzip -9 - < %s.ps > %s.ps.gz' %  (base, base))
@@ -1264,7 +1279,7 @@ def compile_all_files (chunks):
                                lilyopts += ' --dep-prefix=' + g_outdir + '/'
                lilyopts += ' --header=texidoc'
                texfiles = string.join (tex)
-               cmd = string.join ((lilypond_cmd, lilyopts, g_extra_opts,
+               cmd = string.join ((lilypond_binary, lilyopts, g_extra_opts,
                                    texfiles))
                ly.system (cmd, ignore_error = 0, progress_p = 1)
 
index 7b8c519955223992db5600962d5e172d1aba07ad..8c418aa6c84bd17a3a263f05807b5415a0a45849 100644 (file)
@@ -156,9 +156,13 @@ pdftex_p = 0
 latex_cmd = 'latex'
 tex_extension = '.tex'
 
-# Debugging support -- do we need this?
-lilypond_cmd = 'lilypond'
-#lilypond_cmd = 'valgrind --suppressions=%(home)s/usr/src/guile-1.6.supp --num-callers=10 %(home)s/usr/src/lilypond/lily/out/lilypond '% { 'home' : '/home/hanwen' }
+#lilypond_binary = 'valgrind --suppressions=%(home)s/usr/src/guile-1.6.supp --num-callers=10 %(home)s/usr/src/lilypond/lily/out/lilypond '% { 'home' : '/home/hanwen' }
+
+lilypond_binary = os.path.join ('@bindir@', 'lilypond')
+
+# only use installed binary  when we're installed too.
+if '@bindir@' == ('@' + 'bindir@') or not os.path.exists (lilypond_binary):
+       lilypond_binary = 'lilypond'
 
 
 layout_fields = ['dedication', 'title', 'subtitle', 'subsubtitle',
@@ -249,7 +253,7 @@ def run_lilypond (files, dep_prefix):
        if debug_p:
                ly.print_environment ()
 
-       cmd = string.join ((lilypond_cmd,opts, fs))
+       cmd = string.join ((lilypond_binary, opts, fs))
        status = ly.system (cmd, ignore_error = 1, progress_p = 1)
        signal = 0x0f & status
        exit_status = status >> 8
@@ -668,10 +672,12 @@ for opt in options:
                pdftex_p = 1
                tex_extension = '.pdftex'
        elif o == '--warranty' or o == '-w':
-               status = os.system ('lilypond -w')
+               status = os.system ('%s -w' % lilypond_binary)
                if status:
                        ly.warranty ()
                sys.exit (0)
+       else:
+               unimplemented_option () # signal programming error
 
 # Don't convert input files to abspath, rather prepend '.' to include
 # path.
index c96cc788ae97362f4374c4c3947c1f6f8e9e9ebc..fa82e1a64df107c50e2cc73b8b892e32fbb7434f 100644 (file)
@@ -4,5 +4,6 @@ omf: $(OMF_FILES)
 
 omf-local-install: $(OMF_FILES)
        $(foreach a, $(OMF_FILES),  $(INSTALL) $(a) $(local_package_omfdir)/$(notdir $(a)) && ) true
+       @echo "Run scrollkeeper-update to register newly installed OMF files."
 
 local-install: omf-local-install