summaryrefslogtreecommitdiff
path: root/cpp/fixCopyright.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-01-08 19:37:14 +0000
committerDwayne Boone <dwayne@zeroc.com>2007-01-08 19:37:14 +0000
commitfcfbae02bc2ab51e96e692577b6435c701854f54 (patch)
treede97d4c9c4c0907b40f42d1e2779203c5c4170eb /cpp/fixCopyright.py
parentfix up RPM spec file generation (diff)
downloadice-fcfbae02bc2ab51e96e692577b6435c701854f54.tar.bz2
ice-fcfbae02bc2ab51e96e692577b6435c701854f54.tar.xz
ice-fcfbae02bc2ab51e96e692577b6435c701854f54.zip
Updated copyright header
Diffstat (limited to 'cpp/fixCopyright.py')
-rwxr-xr-xcpp/fixCopyright.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/fixCopyright.py b/cpp/fixCopyright.py
index 8e5403b189a..5edbbdf7c0a 100755
--- a/cpp/fixCopyright.py
+++ b/cpp/fixCopyright.py
@@ -20,7 +20,7 @@ def copyright(commentMark, patchIceE):
result = [ ]
result.append(commentMark + " **********************************************************************\n")
result.append(commentMark + "\n")
- result.append(commentMark + " Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.\n")
+ result.append(commentMark + " Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.\n")
result.append(commentMark + "\n")
if patchIceE == True:
result.append(commentMark + " This copy of Ice-E is licensed to you under the terms described in the\n")
@@ -143,6 +143,9 @@ def replaceAllCopyrights(path, patchIceE):
pythonCopyright = []
pythonCopyright.append("#!/usr/bin/env python\n");
pythonCopyright.extend(makefileCopyright)
+ rubyCopyright = []
+ rubyCopyright.append("#!/usr/bin/env ruby\n");
+ rubyCopyright.extend(makefileCopyright)
xmlCopyright = []
xmlCopyright.append("<!--\n");
xmlCopyright.extend(copyright("", patchIceE))
@@ -175,6 +178,9 @@ def replaceAllCopyrights(path, patchIceE):
elif fnmatch.fnmatch(x, "*.def"):
commentMark = "#"
copyrightLines = pythonCopyright
+ elif fnmatch.fnmatch(x, "*.rb"):
+ commentMark = "#"
+ copyrightLines = rubyCopyright
elif fnmatch.fnmatch(x, "*.mc"):
commentMark = "; //"
copyrightLines = mcCopyright