diff options
author | Fred Drake <fdrake@acm.org> | 2001-01-22 21:34:20 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-01-22 21:34:20 (GMT) |
commit | bc3974c03b2f4ecb8c65f0370c2e011829ad7c69 (patch) | |
tree | 0e497dba629d7fead33a740a5011a64e3c43e44c /Doc/tools | |
parent | 9c3b9b76c1f16283c35b7394aa683f160691e81d (diff) | |
download | cpython-bc3974c03b2f4ecb8c65f0370c2e011829ad7c69.zip cpython-bc3974c03b2f4ecb8c65f0370c2e011829ad7c69.tar.gz cpython-bc3974c03b2f4ecb8c65f0370c2e011829ad7c69.tar.bz2 |
When generating the source package, copy in the LICENSE file from the main
source directory.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-x | Doc/tools/mksourcepkg | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/tools/mksourcepkg b/Doc/tools/mksourcepkg index 098bed2..c7ca188 100755 --- a/Doc/tools/mksourcepkg +++ b/Doc/tools/mksourcepkg @@ -16,8 +16,6 @@ with [tag]: generate from the named tag #* should be modified to get the Python version number automatically # from the Makefile or someplace. -__version__ = "$Revision$" - import getopt import glob import os @@ -63,9 +61,9 @@ def main(): formats["bzip2"] = 1 formats["gzip"] = 1 formats["zip"] = 1 - formats = formats.keys() if formats: # make order human-predictable + formats = formats.keys() formats.sort() else: formats = ["gzip"] @@ -101,8 +99,12 @@ def main(): else: run("cvs -Q -d%s checkout -d Doc python/dist/src/Doc" % cvsroot) # remove CVS directories - for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS'): + for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS', + '.cvsignore', '*/.cvsignore'): map(shutil.rmtree, glob.glob(p)) + LICENSE = os.path.normpath( + os.path.join(mydir, os.pardir, os.pardir, "LICENSE")) + shutil.copyfile(LICENSE, "Doc/LICENSE") if tools: archive = "doctools-" + release # we don't want the actual documents in this case: |