[Python-checkins] python/dist/src/Doc/tools mksourcepkg, 1.6.16.1,
1.6.16.2
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Fri Dec 5 11:44:03 EST 2003
Update of /cvsroot/python/python/dist/src/Doc/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv15258/tools
Modified Files:
Tag: release23-maint
mksourcepkg
Log Message:
Anthony started backporting the changes needed to remove version numbers
from the Doc/ tree; this finishes the job. Version information is now
extracted from Python's Include/patchlevel.h.
Index: mksourcepkg
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mksourcepkg,v
retrieving revision 1.6.16.1
retrieving revision 1.6.16.2
diff -C2 -d -r1.6.16.1 -r1.6.16.2
*** mksourcepkg 3 Oct 2003 15:20:30 -0000 1.6.16.1
--- mksourcepkg 5 Dec 2003 16:44:01 -0000 1.6.16.2
***************
*** 27,30 ****
--- 27,38 ----
import cvsinfo
+ try:
+ __file__
+ except NameError:
+ __file__ = sys.argv[0]
+
+ tools = os.path.dirname(os.path.abspath(__file__))
+ Doc = os.path.dirname(tools)
+ patchlevel_tex = os.path.join(Doc, "commontex", "patchlevel.tex")
quiet = 0
***************
*** 106,111 ****
for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS'):
map(shutil.rmtree, glob.glob(p))
! for f in ('.cvsignore', '*/.cvsignore'):
! map(os.unlink, glob.glob(f))
LICENSE = os.path.normpath(
os.path.join(mydir, os.pardir, os.pardir, "LICENSE"))
--- 114,130 ----
for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS'):
map(shutil.rmtree, glob.glob(p))
! for f in ('.cvsignore', '*/.cvsignore'):
! map(os.unlink, glob.glob(f))
!
! # Copy in the version informtation, if we're not just going to
! # rip it back out:
! if not tools:
! if not os.path.exists(patchlevel_tex):
! run(os.path.join(here, "getversioninfo"))
! dest = os.path.join("Python-Docs-" + release, "commontex",
! "patchlevel.tex")
! shutil.copyfile(patchlevel_tex, dest)
!
! # Copy in the license file:
LICENSE = os.path.normpath(
os.path.join(mydir, os.pardir, os.pardir, "LICENSE"))
***************
*** 115,119 ****
# we don't want the actual documents in this case:
for d in ("api", "dist", "doc", "ext", "inst",
! "lib", "mac", "ref", "tut"):
shutil.rmtree(os.path.join(pkgdir, d))
else:
--- 134,138 ----
# we don't want the actual documents in this case:
for d in ("api", "dist", "doc", "ext", "inst",
! "lib", "mac", "ref", "tut", "commontex"):
shutil.rmtree(os.path.join(pkgdir, d))
else:
More information about the Python-checkins
mailing list