summaryrefslogtreecommitdiff
path: root/scripts/fixCopyright.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/fixCopyright.py')
-rwxr-xr-xscripts/fixCopyright.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/fixCopyright.py b/scripts/fixCopyright.py
deleted file mode 100755
index ae2a3b385e6..00000000000
--- a/scripts/fixCopyright.py
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env python
-# **********************************************************************
-#
-# Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
-#
-# This copy of Ice is licensed to you under the terms described in the
-# ICE_LICENSE file included in this distribution.
-#
-# **********************************************************************
-
-import os, sys
-sys.path.append(os.path.join(os.path.dirname(__file__), "..", "lib"))
-import FixUtil
-
-def usage():
- print "Usage: " + sys.argv[0] + " [options]"
- print
- print "Options:"
- print "-h Show this message."
- print
-
-for x in sys.argv[1:]:
- if x == "-h":
- usage()
- sys.exit(0)
- elif x.startswith("-"):
- print sys.argv[0] + ": unknown option `" + x + "'"
- print
- usage()
- sys.exit(1)
-
-cpatMatch = "Copyright .+ 20[0-9][0-9]-(20[0-9][0-9]) ZeroC"
-copyright = "2015"
-for f in FixUtil.getTrackedFiles():
- FixUtil.fileMatchAllAndReplace(f, [(cpatMatch, copyright)], False)