summaryrefslogtreecommitdiff
path: root/FixUtil.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-03-26 16:04:21 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-03-26 16:04:21 -0230
commit047bd19d9c2e2b9362748139af6a59025dfc383e (patch)
tree3061c0c00fba197a656165404576c41675c5c372 /FixUtil.py
parentBug 2511 - add default servants (diff)
downloadice-047bd19d9c2e2b9362748139af6a59025dfc383e.tar.bz2
ice-047bd19d9c2e2b9362748139af6a59025dfc383e.tar.xz
ice-047bd19d9c2e2b9362748139af6a59025dfc383e.zip
Allow for 3 line comment in header
Diffstat (limited to 'FixUtil.py')
-rwxr-xr-xFixUtil.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/FixUtil.py b/FixUtil.py
index 32b7cbcefc9..ffe97a91cac 100755
--- a/FixUtil.py
+++ b/FixUtil.py
@@ -15,8 +15,14 @@ def copyright(commentMark, product, license):
line2 = commentMark + line1[line1.rfind(" ", 0, 72):]
line1 = line1[:line1.rfind(" ", 0, 72)]
line2 += (" %s file included in this distribution.") % license
+ line3 = commentMark
+ if len(line2) >= 72:
+ line3 = commentMark + line2[line2.rfind(" ", 0, 72):]
+ line2 = line2[:line2.rfind(" ", 0, 72)]
result.append(line1 + "\n")
result.append(line2 + "\n")
+ if line3 != commentMark:
+ result.append(line3 + "\n")
result.append(commentMark + "\n")
result.append(commentMark + " **********************************************************************\n")
return result