]> git.donarmstrong.com Git - lilypond.git/commitdiff
(Lilypond_snippet.__init__):
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 6 Apr 2005 13:00:47 +0000 (13:00 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 6 Apr 2005 13:00:47 +0000 (13:00 +0000)
only process options fi they're there.
(write_file_map): add version-seen? to snippet-map.ly

ChangeLog
scripts/lilypond-book.py

index a63f208424f30c7efcd41440f6ea33c03436caf9..c67bf7ef0fa34ca886268d9ee3175ce16da109e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * scripts/lilypond-book.py (Lilypond_snippet.__init__): 
        only process options fi they're there.
+       (write_file_map): add version-seen? to snippet-map.ly
 
 2005-04-06  Jan Nieuwenhuizen  <jan.nieuwenhuizen@aspiratie.nl>
 
index 48f04c345641cccf74e2e8cb99ac0e856a0b34c3..f43f6bccca949349c6475ad6e0a528ef3c9c8055 100644 (file)
@@ -1265,7 +1265,10 @@ class Compile_error:
 
 def write_file_map (lys, name):
        snippet_map = open ('snippet-map.ly', 'w')
-       snippet_map.write ("\n#(ly:add-file-name-alist '(")
+       snippet_map.write ("""
+#(define version-seen? #t)
+#(ly:add-file-name-alist '(
+""")
        for ly in lys:
                snippet_map.write ('("%s.ly" . "%s:%d (%s.ly)")\n' \
                                   % (ly.basename (),