]> git.donarmstrong.com Git - lilypond.git/commitdiff
(web_kluts): Have make web build in out-www. Not.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 17 Jul 2004 10:52:59 +0000 (10:52 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 17 Jul 2004 10:52:59 +0000 (10:52 +0000)
ChangeLog
SConstruct
input/regression/new-slur.ly
scripts/lilypond-book.py

index 092e4da480764a62063b11bce8278456f6f12943..a0f4a5a4b4394ba13189436ac60652a6221dec91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-07-17  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * SConstruct (web_kluts): Have make web build in out-www.  Not.
+
 2004-07-17  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
        * Documentation/user/music-glossary.tely (Top): add fragment to
index ce0c1244398409a2593a1ee41d57587de8f7aa3a..d40237410e5780e3ac1714265f1644046cd71fc9 100644 (file)
@@ -184,6 +184,14 @@ if env['checksums']:
        SetOption ('max_drift', 0)
        TargetSignatures ("content")
 
+# build web in out-www, so that scons is a drop-in replacement for make
+# we can revise the entire web building when web is built with scons.
+web_kluts = ''
+# Hmm:  scons: *** maximum recursion limit exceeded
+if 0 and 'web' in COMMAND_LINE_TARGETS:
+       web_kluts = 'out-scons' #env['out']
+       env['out'] = 'out-www'
+
 absbuild = Dir (env['build']).abspath
 outdir = os.path.join (Dir (env['build']).abspath, env['out'])
 run_prefix = os.path.join (absbuild, os.path.join (env['out'], 'usr'))
@@ -771,5 +779,9 @@ for d in subdirs:
                # and ./out build.
                if os.path.abspath (b) != os.path.abspath (d):
                        env.BuildDir (b, d, duplicate = 0)
+               if web_kluts:
+                       # look in out-scons 
+                       env.Repository (os.path.join (env['build'], d,
+                                                     web_kluts))
                        SConscript (os.path.join (b, 'SConscript'))
 
index b822ba30f4e1b84a69e244d6bdd881c2c3922389..a840a56f0edcb1c8a28233a336047b76e56bffa3 100644 (file)
@@ -9,6 +9,9 @@
 
 % #(ly:set-option 'debug-beam #t)
 
+%% help lilypond-book
+%% \score
+
 \relative {
     \override Slur #'after-line-breaking-callback = #New_slur::after_line_breaking
     \override Slur #'print-function = #New_slur::print     
index 42991681ad02a611121aa3fe0d7e8cadeeb6b6a1..75fe418591e457ca349a2248123269d3fbdb6621 100644 (file)
@@ -351,7 +351,9 @@ def compose_ly (code, options):
        if QUOTE in options and LINEWIDTH in options:
                options.remove (LINEWIDTH)
 
-       if FRAGMENT in options:
+       m = re.search (r'''\\(header|score)''', code)
+       if not m and (not options \
+                     or not NOFRAGMENT in options or FRAGMENT in options):
                if RAGGEDRIGHT not in options:
                        options.append (RAGGEDRIGHT)
                body = FRAGMENT_LY