4 Permission to use, copy, modify, and distribute this software and its
5 documentation for any purpose and without fee is hereby granted,
6 provided that the above copyright notice appear in all copies and that
7 both that copyright notice and this permission notice appear in
8 supporting documentation, and that the names of Stichting Mathematisch
9 Centrum or CWI not be used in advertising or publicity pertaining to
10 distribution of the software without specific, written prior permission.
12 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
13 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
14 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
15 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
18 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 Copyright (c) 2000, BeOpen.com.
23 Copyright (c) 1995-2000, Corporation for National Research Initiatives.
24 Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
27 See the file "Misc/COPYRIGHT" for information on usage and
28 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
33 import os
, sys
, string
46 i
= string
.find(data
, OLD_NOTICE
)
48 ## print "No old notice in", arg
50 data
= data
[:i
] + NEW_NOTICE
+ data
[i
+len(OLD_NOTICE
):]
53 print "Replacing notice in", arg
, "...",
58 os
.rename(arg
, backup
)
62 if __name__
== '__main__':