From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Wed, 6 Apr 2005 13:00:47 +0000 (+0000)
Subject: (Lilypond_snippet.__init__):
X-Git-Tag: release/2.5.19~40
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=671db71c82cfd97936f4fbae85a30755cf0fb09e;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  <jan.nieuwenhuizen@aspiratie.nl>
 
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 (),