#!/usr/bin/env python # ********************************************************************** # # Copyright (c) 2003-2009 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 \\(c\\) 20[0-9][0-9]-(20[0-9][0-9]) ZeroC" copyright = "2009" for f in FixUtil.getTrackedFiles(): FixUtil.fileMatchAndReplace(f, [(cpatMatch, copyright)], False)