diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-03-26 12:24:10 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-03-26 12:24:10 +0100 |
commit | 7ffb2ed482d7e1f759cff2adc1a6e897e1c83e9c (patch) | |
tree | f32eb28345325a2673b9be53c733cb6bd09fd13c /FixUtil.py | |
parent | Copyright fixes (diff) | |
download | ice-7ffb2ed482d7e1f759cff2adc1a6e897e1c83e9c.tar.bz2 ice-7ffb2ed482d7e1f759cff2adc1a6e897e1c83e9c.tar.xz ice-7ffb2ed482d7e1f759cff2adc1a6e897e1c83e9c.zip |
More fixes to FixUtil.py
Diffstat (limited to 'FixUtil.py')
-rwxr-xr-x | FixUtil.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/FixUtil.py b/FixUtil.py index e1f53ca38ec..32b7cbcefc9 100755 --- a/FixUtil.py +++ b/FixUtil.py @@ -11,9 +11,9 @@ def copyright(commentMark, product, license): result.append(commentMark + "\n") line1 = commentMark + (" This copy of %s is licensed to you under the terms described in the") % product line2 = commentMark - if len(line1) >= 79: - line2 = commentMark + line1[line1.rfind(" ", 0, 79):] - line1 = line1[:line1.rfind(" ", 0, 79)] + if len(line1) >= 72: + line2 = commentMark + line1[line1.rfind(" ", 0, 72):] + line1 = line1[:line1.rfind(" ", 0, 72)] line2 += (" %s file included in this distribution.") % license result.append(line1 + "\n") result.append(line2 + "\n") @@ -173,7 +173,9 @@ def replaceAllCopyrights(path, product, license, recursive): elif fnmatch.fnmatch(x, "Make*") or fnmatch.fnmatch(x, "*.properties"): commentMark = "#" copyrightLines = makefileCopyright - elif fnmatch.fnmatch(x, "*.h") or fnmatch.fnmatch(x, "*.cpp") or fnmatch.fnmatch(x, "*.cs") or fnmatch.fnmatch(x, "*.java") or fnmatch.fnmatch(x, "*.l") or fnmatch.fnmatch(x, "*.y"): + elif fnmatch.fnmatch(x, "*.h") or fnmatch.fnmatch(x, "*.cpp") or fnmatch.fnmatch(x, "*.cs") or \ + fnmatch.fnmatch(x, "*.java") or fnmatch.fnmatch(x, "*.l") or fnmatch.fnmatch(x, "*.y") or \ + fnmatch.fnmatch(x, "*.m") or fnmatch.fnmatch(x, "*.mm"): commentMark = "//" copyrightLines = cppCopyright elif fnmatch.fnmatch(x, "*.ice") and not fnmatch.fnmatch(x, "IllegalIdentifier.ice"): |