]> git.donarmstrong.com Git - lilypond.git/commitdiff
* stepmake/stepmake/generic-vars.make: new function absdir.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 1 Mar 2006 17:04:25 +0000 (17:04 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 1 Mar 2006 17:04:25 +0000 (17:04 +0000)
* scripts/lilypond-book.py (find_file): use global_options for
include path

ChangeLog
make/generic-vars.make
make/mutopia-rules.make
python/lilylib.py
scripts/lilypond-book.py
stepmake/stepmake/generic-vars.make

index 2f0f84307af8dddeca632daa3007da4eadaa8927..e089d3a0459a590257d2970ddb331e35f68429f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-03-01  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * stepmake/stepmake/generic-vars.make: new function absdir.
+
        * scripts/convert-ly.py (bindir): use optparse, argv[0] relocation.
 
        * scripts/lilypond-book.py (find_file): use global_options for
index 652bdd11a197e246e5ca10f9f4e87baa528ecbae..201a9ea7a4e5c5b2d81aab5f3e91e3a68a4112f2 100644 (file)
@@ -12,7 +12,6 @@ buildscript-dir = $(src-depth)/buildscripts
 script-dir = $(src-depth)/scripts
 input-dir = $(src-depth)/input
 
-
 flower-dir = $(src-depth)/flower
 lily-dir = $(src-depth)/lily
 mi2mu-dir = $(src-depth)/mi2mu
index b39307d29a43c11aa9453fc24428c65dbfac2cf4..e5d647d62649eff20d24ecb0f503e830274e2051 100644 (file)
@@ -15,7 +15,7 @@ $(outdir)/%.ly: %.abc
 
 # hmm. notdir builds src-dir builds?
 $(outdir)/%.png $(outdir)/%.pdf $(outdir)/%.ly $(outdir)/%.ps: $(outdir)/%.ly
-       cd $(outdir); $(LILYPOND_BINARY) --pdf --png -danti-alias-factor=2 -ddelete-intermediate-files -dno-point-and-click -I $(src-dir)/ $(notdir $<)
+       cd $(outdir); $(LILYPOND_BINARY) --pdf --png -danti-alias-factor=2 -ddelete-intermediate-files -dno-point-and-click -I $(call absdir,$(src-dir))/ $(notdir $<)
        touch $(outdir)/$(basename $(notdir $<)).png
 
 $(outdir)/%.ly: %.ly
index 39ae4adc5af9cfa6410c2fa9918af7140d83d12f..94363e5087b019fe50fd18fa97258143eca50d19 100644 (file)
@@ -83,6 +83,7 @@ def error (s):
        sys.stderr.write (__main__.program_name + ": " + _ ("error: %s") % s + '\n')
        
 def exit (i):
+       be_verbose = get_global_option('verbose_p', 'verbose')
        if be_verbose:
                raise _ ('Exiting (%d)...') % i
        else:
@@ -315,6 +316,7 @@ Exit status of CMD '''
        return status
 
 def cleanup_temp ():
+       be_verbose = get_global_option('verbose_p', 'verbose')
        if not __main__.keep_temp_dir_p:
                if be_verbose:
                        progress (_ ("Cleaning %s...") % __main__.temp_dir)
index 460e74eb2ece36e53115b554b04851c09382aa46..7b79c9e2046e1af8bd411f3d66dac2588f4a8130 100644 (file)
@@ -686,6 +686,7 @@ def find_file (name):
                full = os.path.join (i, name)
                if os.path.exists (full):
                        return full
+               
        ly.error (_ ("file not found: %s") % name + '\n')
        ly.exit (1)
        return ''
@@ -1625,7 +1626,9 @@ def do_options ():
                options.format = TEXINFO
        options.use_hash = True
        options.pseudo_filter = False
-       
+
+       options.include_path =  map (os.path.abspath, options.include_path)
+
        global global_options
        global_options = options
        return args
index 249ddc82bbd8a52420fc236c38b18a63627fe5fc..16076312052cfb9fda01b941b809c0a1f0a394a5 100644 (file)
@@ -2,6 +2,9 @@ top-build-dir = $(shell cd $(depth) && pwd)
 build-dir = $(shell cd . && pwd)
 tree-dir = $(subst $(top-build-dir),,$(build-dir))
 
+absdir = $(shell cd $(1) ; pwd)
+
+
 ifneq ($(configure-srcdir),.)
 srcdir-build = 1
 endif