From: fred Date: Sun, 24 Mar 2002 20:02:05 +0000 (+0000) Subject: lilypond-0.1.41 X-Git-Tag: release/1.5.59~3627 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5986a683efcbbf38b1dbb4d77a14ad5cd572bcf2;p=lilypond.git lilypond-0.1.41 --- diff --git a/bin/genheader.py b/bin/genheader.py index 07bd450772..4a68b3b80d 100644 --- a/bin/genheader.py +++ b/bin/genheader.py @@ -111,11 +111,14 @@ def do_file(nm): def extension(ext,nm): - ext = '\.' + ext + ext = '\\.' + ext return regex.search(ext, nm) <> -1 +def c_extension(nm): + return extension('hh',nm) or extension('cc',nm) \ + or extension('icc', nm) or extension('tcc',nm) def select_commentification(nm): - if extension('hh',nm) or extension('cc',nm): + if c_extension (nm): return c_commentify elif extension('py',nm) or extension('pl',nm) or extension('sh',nm): return sh_commentify @@ -125,7 +128,7 @@ def select_commentification(nm): raise 'help' for nm in files: - if extension('hh', nm): + if extension('hh', nm) or extension('icc', nm) or extension('tcc', nm): my_options.add_hdr_def = 1 if my_options.commentify == None: my_options.commentify = select_commentification(nm)