]> git.donarmstrong.com Git - lilypond.git/commitdiff
Lilypond-Book: We need the [snippetfile].txt files for makeinfo...
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 20 Aug 2011 18:00:22 +0000 (20:00 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 22 Aug 2011 10:33:09 +0000 (12:33 +0200)
Make the .txt file required, otherwise we'll get warnings from makeinfo.
Also create the .txt file for MusicXML files

python/book_snippets.py

index 17935d635985b38d3217b70b1954302a8ec666e9..5d6600691312bcb72e9d1fc5da328679a81e7352 100644 (file)
@@ -686,7 +686,8 @@ printing diff against existing file." % filename)
 
         # UGH - junk self.global_options
         skip_lily = self.global_options.skip_lilypond_run
-        for required in [base + '.ly']:
+        for required in [base + '.ly',
+                         base + '.txt']:
             require_file (required)
         if not skip_lily:
             require_file (base + '-systems.count')
@@ -935,6 +936,8 @@ printing diff against existing file.") % filename)
             out = file (filename, 'w')
             out.write (self.full_ly ())
             out.close ()
+            file (path + '.txt', 'w').write ('image of music')
+
 
 
 class LilyPondVersionString (Snippet):