From: hanwen Date: Wed, 6 Apr 2005 13:00:47 +0000 (+0000) Subject: (Lilypond_snippet.__init__): X-Git-Tag: release/2.5.23~195 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bcf04ca0781934e78efd89a061f9ed28a698683a;p=lilypond.git (Lilypond_snippet.__init__): only process options fi they're there. (write_file_map): add version-seen? to snippet-map.ly --- diff --git a/ChangeLog b/ChangeLog index a63f208424..c67bf7ef0f 100644 --- 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 diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 48f04c3456..f43f6bccca 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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 (),