summaryrefslogtreecommitdiff
path: root/FixUtil.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2009-03-26 12:24:10 +0100
committerBenoit Foucher <benoit@zeroc.com>2009-03-26 12:24:10 +0100
commit7ffb2ed482d7e1f759cff2adc1a6e897e1c83e9c (patch)
treef32eb28345325a2673b9be53c733cb6bd09fd13c /FixUtil.py
parentCopyright fixes (diff)
downloadice-7ffb2ed482d7e1f759cff2adc1a6e897e1c83e9c.tar.bz2
ice-7ffb2ed482d7e1f759cff2adc1a6e897e1c83e9c.tar.xz
ice-7ffb2ed482d7e1f759cff2adc1a6e897e1c83e9c.zip
More fixes to FixUtil.py
Diffstat (limited to 'FixUtil.py')
-rwxr-xr-xFixUtil.py10
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"):