]> git.donarmstrong.com Git - lilypond.git/commitdiff
Make extract-texi-filenames ignore comments
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 5 Mar 2012 17:05:51 +0000 (17:05 +0000)
committerPhil Holmes <mail@philholmes.net>
Mon, 5 Mar 2012 17:05:51 +0000 (17:05 +0000)
scripts/build/extract_texi_filenames.py

index 37a7547966be9c09db3886779ca93d72ffb6dae1..9e338b5daf0f26312c7b5c6ddf55cd80a5ea859d 100644 (file)
@@ -111,7 +111,8 @@ if not os.path.isdir (outdir):
         os.unlink (outdir)
     os.makedirs (outdir)
 
-include_re = re.compile (r'@include ((?!../lily-).*?\.i?te(xi|ly))$', re.M)
+# Only look at @include if it is not preceeded by a @c:
+include_re = re.compile (r'^(?!.*@c .*@include)@include ((?!../lily-).*?\.i?te(xi|ly))$', re.M)
 whitespaces = re.compile (r'\s+')
 section_translation_re = re.compile ('^@(node|(?:unnumbered|appendix)\
 (?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|\