[Python-checkins] CVS: python/dist/src/Doc/tools mksourcepkg,1.1,1.1.2.1
Fred L. Drake
fdrake@weyr.cnri.reston.va.us
Wed, 15 Mar 2000 11:41:31 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Doc/tools
In directory weyr:/home/fdrake/projects/python/Doc-152p2/tools
Modified Files:
Tag: release152p1-patches
mksourcepkg
Log Message:
When building a ZIP archive, remove an existing version first so we
don't accumulate files that are no longer used. Also, use the -q
option so we don't fill up scrollback buffers with so much junk.
Index: mksourcepkg
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/tools/mksourcepkg,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** mksourcepkg 1999/08/02 20:19:17 1.1
--- mksourcepkg 2000/03/15 16:41:28 1.1.2.1
***************
*** 17,21 ****
# from the Makefile or someplace.
! __version__ = "$Revision: 1.1 $"
import getopt
--- 17,21 ----
# from the Makefile or someplace.
! __version__ = "$Revision: 1.1.2.1 $"
import getopt
***************
*** 106,110 ****
% (release, archive))
elif format == "zip":
! run("zip -r9 %s.zip Python-%s"
% (archive, release))
--- 106,112 ----
% (release, archive))
elif format == "zip":
! if os.path.exists(archive + ".zip"):
! os.unlink(archive + ".zip")
! run("zip -q -r9 %s.zip Python-%s"
% (archive, release))