X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Flilypond-book.py;h=b84d2976cd01243d0d4fedc7da1692e34f14f17f;hb=80bb174de95ebb8a08e5bdfae0855c525b8e7736;hp=4f90a8efd6235ca24dc42da98be1833f6206fdcd;hpb=f0b94bbbd1d07e439f7a9c946f526985dbb7e443;p=lilypond.git diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 4f90a8efd6..b84d2976cd 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -511,12 +511,12 @@ class Lilypond_snippet (Snippet): def is_outdated (self): base = self.basename () - ## FIXME: adding PNG to is_outdated test fixes - ## interrupted (web) builds. - ## should only do this if PNG is actually target - if os.path.exists (base + '.ly') \ - and os.path.exists (base + '.tex') \ - and os.path.exists (base + '.png') \ + + require = ['.ly', '.tex'] + if format == HTML: + require.append ('.png') + require = [os.path.exists (base + x) for x in require] + if reduce (lambda a,b: a and b, require) \ and (use_hash_p \ or self.ly () == open (base + '.ly').read ()): # TODO: something smart with target formats