]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/auxiliar/check_texi_refs.py
Add '-dcrop' option to ps and svg backends
[lilypond.git] / scripts / auxiliar / check_texi_refs.py
index dff7e334f1ccc45d9e2ab039ef8b222ef8443a48..45f1e16993581c02fc6fd5509ceca22ac6730ac5 100755 (executable)
@@ -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<ref>[^,\\\\\\}]+?)|\
+    ('@((?:ressay|rgloss|rinternals|rlearning|rslr|rprogram|ruser|ref)|named)(?:\\{(?P<ref>[^,\\\\\\}]+?)|\
 named\\{(?P<refname>[^,\\\\]+?),(?P<display>[^,\\\\\\}]+?))\\}(?P<last>.)',
      re.DOTALL)
 node_include_re = re.compile (r'(?m)^@(node|include)\s+(.+?)$')