]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/check_texi_refs.py
Update musicexp.py with new \sustain* and \arpeggio* syntax
[lilypond.git] / buildscripts / check_texi_refs.py
index 4e8f5eedb9267542e3ef3f6d4c368344d9ed9008..94bd6ecb642476c58ed188cbbd26e624f3a88977 100755 (executable)
@@ -331,6 +331,7 @@ in the list)\n")
 def check_ref (manual, file, m):
     global fixes_count, bad_refs_count
     bad_ref = False
+    fixed = True
     type = m.group (1)
     original_name = m.group (2)
     name = whitespace_re.sub (' ', original_name). strip ()
@@ -351,7 +352,7 @@ not followed by punctuation\n" % (file, line, name))
     explicit_type = type
     new_name = name
 
-    if type != 'ref' and type == manual and not commented_out:
+    if type != 'ref' and type == manual and not commented_out and useful_fix:
         bad_ref = True
         stdout.write ("\n%s: %d: `%s': external %s x-ref should be internal\n"
                       % (file, line, name, type))
@@ -461,7 +462,7 @@ node name and manual for this x-ref by index number or beginning of name:\n", \
     bad_refs_count += int (bad_ref)
     if bad_ref and not useful_fix:
         stdout.write ("*** Warning: this file is automatically generated, \
-please fix the code source manually.\n")
+please fix the code source instead of generated documentation.\n")
 
     # compute returned string
     if new_name == name:
@@ -488,5 +489,5 @@ except InteractionError, instance:
     log.write ("Operation refused by user: %s\nExiting.\n" % instance)
     sys.exit (3)
 
-log.write ("Done, %d bad x-refs found, fixed %d.\n" %
+log.write ("Done: %d bad x-refs found, fixed %d.\n" %
            (bad_refs_count, fixes_count))