]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix bug in ly_is_outdated.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 26 Nov 2006 13:15:00 +0000 (14:15 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 12 Dec 2006 15:16:44 +0000 (16:16 +0100)
scripts/lilypond-book.py

index bfa302375ee962074b58a7aebe76c020e3c3f890..66e0704e69ec6ab41e039d50f829619b2bf198ab 100644 (file)
@@ -1098,14 +1098,17 @@ class Lilypond_snippet (Snippet):
             and os.path.exists (systems_file)
             and os.stat (systems_file)[stat.ST_SIZE]
             and re.match ('% eof', open (systems_file).readlines ()[-1])
-            and (not global_options.use_hash or FILENAME in self.option_dict)
+            and (global_options.use_hash or FILENAME in self.option_dict)
             and (self.relevant_contents (self.full_ly ())
                  == self.relevant_contents (open (ly_file).read ()))):
             return None
+        if global_options.verbose:
+            print 'OUT OF DATE: ', ly_file
         return self
 
     def png_is_outdated (self):
         base = self.basename ()
+        # FIXME: refactor stupid OK stuff
         ok = not self.ly_is_outdated ()
         if global_options.format in (HTML, TEXINFO):
             ok = ok and os.path.exists (base + '.eps')
@@ -1127,6 +1130,7 @@ class Lilypond_snippet (Snippet):
         if backend == 'ps':
             return 0
 
+        # FIXME: refactor stupid OK stuff
         base = self.basename ()
         ok = self.ly_is_outdated ()
         ok = ok and (os.path.exists (base + '.texstr'))
@@ -1761,6 +1765,7 @@ def do_options ():
     return args
 
 def main ():
+    # FIXME: 85 lines of `main' macramee??
     files = do_options ()
 
     file = files[0]