/[gzz]/gzz/metacode/copyrighter.py
ViewVC logotype

Diff of /gzz/metacode/copyrighter.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by tjl, Fri Feb 21 16:34:54 2003 UTC revision 1.7 by tjl, Fri Feb 21 18:38:39 2003 UTC
# Line 77  java_template = """\ Line 77  java_template = """\
77  """  """
78    
79  doCopyrightRe = re.compile(r"(//|#)\s*\([cC]\)\s*:?\s*([^\n]+)")  doCopyrightRe = re.compile(r"(//|#)\s*\([cC]\)\s*:?\s*([^\n]+)")
80    doSuffix = re.compile(r"\.(?:java|py|test|pl|PL|c|h|cxx|hxx)$")
81    
82  def process_dir(arg, dir, names):  def process_dir(arg, dir, names):
83      for name in names:      for name in names:
# Line 124  def process_dir(arg, dir, names): Line 125  def process_dir(arg, dir, names):
125              open(file, 'w').write(text)              open(file, 'w').write(text)
126          else:          else:
127              # Is this a file type that needs to be copyrighted?              # Is this a file type that needs to be copyrighted?
128              if re.search(r"\.(?:java|py|test|pl|PL)$", name):              if re.search(doSuffix, name):
129                  m = max([re.search("General Public License", line)                  m = max([re.search("General Public License", line)
130                              for line in firstlines])                              for line in firstlines])
131                  if m == None:                  if m == None:

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26