From bcf04ca0781934e78efd89a061f9ed28a698683a Mon Sep 17 00:00:00 2001
From: hanwen <hanwen>
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  <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 (),
-- 
2.39.5