X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fauxiliar%2Fref_check.py;h=09c344959976b172fa9d502f43d59187199b8207;hb=ce43b953f70e2b7b36e11f3cb2bb0f179fc3b1a3;hp=48bc4d6e10d11176f2e6204e8a19ea65a3ca3649;hpb=9158bc17904d4dd930a1f776cfe3226f1ad84092;p=lilypond.git diff --git a/scripts/auxiliar/ref_check.py b/scripts/auxiliar/ref_check.py index 48bc4d6e10..09c3449599 100755 --- a/scripts/auxiliar/ref_check.py +++ b/scripts/auxiliar/ref_check.py @@ -47,7 +47,7 @@ class CrossRefs: global returnCode # print "Node: ", nodeName, " in ", manualName, " found in ", fileName if manualName+"/"+nodeName in self.Nodes.keys(): - print "Error: Duplicate nodename ",nodeName, " in ", fileName, " and ", self.Nodes[manualName+nodeName] + print "Error: Duplicate nodename ",nodeName, " in ", fileName, " and ", self.Nodes[manualName+"/"+nodeName][1] returnCode=1 self.Nodes[manualName + "/" + nodeName] = [manualName, fileName] self.nodeNames[nodeName] = fileName @@ -111,7 +111,7 @@ class File: if words[0] == "@end" and (words[1].find("ignore") >= 0 or words[1].find("macro") >= 0): skip = False - if not skip and words[0].find("@c") < 0: + if not skip and words[0] != "@c": if words[0].find("@defManual") >= 0: # Manual definition found - extract manual name and refManual string manualName = words[1] @@ -158,7 +158,7 @@ class File: if refStart >= 0: refFound = True if actualToManualName == File.CurrentManualName: - print "Warning: xref should be internal around line ", lineNo, " in ", self.fileName + print "Warning: should xref be internal around line ", lineNo, " in ", self.fileName, "?" twoLines = twoLines[refStart:] refNodeStart = twoLines.find("{") + 1 # TODO Need to check here for nested {} @@ -185,4 +185,4 @@ crossRefs = CrossRefs() topFile.read(crossRefs) crossRefs.check() if returnCode > 0: - print "Errors found: status code: ",returnCode \ No newline at end of file + print "Errors found: status code: ",returnCode