X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fauxiliar%2Fcheck_texi_refs.py;h=45f1e16993581c02fc6fd5509ceca22ac6730ac5;hb=HEAD;hp=dff7e334f1ccc45d9e2ab039ef8b222ef8443a48;hpb=38d7d319eabc906e82fb42002678c6d42a23b6f7;p=lilypond.git diff --git a/scripts/auxiliar/check_texi_refs.py b/scripts/auxiliar/check_texi_refs.py index dff7e334f1..45f1e16993 100755 --- a/scripts/auxiliar/check_texi_refs.py +++ b/scripts/auxiliar/check_texi_refs.py @@ -56,9 +56,10 @@ opt_parser.add_option ('-p', '--check-punctuation', opt_parser.add_option ("-I", '--include', help="add DIR to include path", metavar="DIR", action='append', dest='include_path', - default=[os.path.abspath (os.getcwd ())]) + default=[]) (options, files) = opt_parser.parse_args () +options.include_path.append (os.path.abspath (os.getcwd ())) class InteractionError (Exception): pass @@ -144,7 +145,7 @@ else: ref_re = re.compile \ - ('@(ref|ruser|rlearning|rprogram|rglos)(?:\\{(?P[^,\\\\\\}]+?)|\ + ('@((?:ressay|rgloss|rinternals|rlearning|rslr|rprogram|ruser|ref)|named)(?:\\{(?P[^,\\\\\\}]+?)|\ named\\{(?P[^,\\\\]+?),(?P[^,\\\\\\}]+?))\\}(?P.)', re.DOTALL) node_include_re = re.compile (r'(?m)^@(node|include)\s+(.+?)$')