File: //proc/3/task/3/cwd/usr/lib/python2.4/Tools/scripts/fixnotice.pyo
mò
‚=5Dc @ ss d Z d a d k Z d k Z d k Z d a d a d a d d „ Z d „ Z d „ Z
e d j o e ƒ n d S( så (Ostensibly) fix copyright notices in files.
Actually, this sript will simply replace a block of text in a file from one
string to another. It will only do this once though, i.e. not globally
throughout the file. It writes a backup file and then does an os.rename()
dance for atomicity.
Usage: fixnotices.py [options] [filenames]
Options:
-h / --help
Print this message and exit
--oldnotice=file
Use the notice in the file as the old (to be replaced) string, instead
of the hard coded value in the script.
--newnotice=file
Use the notice in the file as the new (replacement) string, instead of
the hard coded value in the script.
--dry-run
Don't actually make the changes, but print out the list of files that
would change. When used with -v, a status will be printed for every
file.
-v / --verbose
Print a message for every file looked at, indicating whether the file
is changed or not.
s¸ /***********************************************************
Copyright (c) 2000, BeOpen.com.
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
All rights reserved.
See the file "Misc/COPYRIGHT" for information on usage and
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
******************************************************************/
Nt i c C s- t t ƒ GH| o | GHn t i | ƒ d S( N( t __doc__t globalst msgt syst exitt code( R R ( ( t- /usr/lib/python2.4/Tools/scripts/fixnotice.pyt usage4 s c C sB y5 t i t i d d d d d d d g ƒ \ } } Wn% t i j
o } t d | ƒ n Xxà | D]» \ } } | d j o t d
ƒ qd | d j o
d a
qd | d
j o
d a qd | d j o&