From 671db71c82cfd97936f4fbae85a30755cf0fb09e Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 6 Apr 2005 13:00:47 +0000 Subject: [PATCH] (Lilypond_snippet.__init__): only process options fi they're there. (write_file_map): add version-seen? to snippet-map.ly --- ChangeLog | 1 + scripts/lilypond-book.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 (), -- 2.39.5