[Python-checkins] cpython (3.4): Closes #21480: better explanation of "hg touch" in the Makefile.

georg.brandl python-checkins at python.org
Mon Oct 6 14:58:44 CEST 2014


https://hg.python.org/cpython/rev/eefed1ecfd47
changeset:   92847:eefed1ecfd47
branch:      3.4
parent:      92845:0d8956240cdf
user:        Georg Brandl <georg at python.org>
date:        Mon Oct 06 14:58:17 2014 +0200
summary:
  Closes #21480: better explanation of "hg touch" in the Makefile.

files:
  Makefile.pre.in |  8 ++++++--
  1 files changed, 6 insertions(+), 2 deletions(-)


diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -336,7 +336,8 @@
 AST_ASDL=	$(srcdir)/Parser/Python.asdl
 
 ASDLGEN_FILES=	$(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
-# XXX Note that a build now requires Python exist before the build starts
+# Note that a build now requires Python to exist before the build starts.
+# Use "hg touch" to fix up screwed up file mtimes in a checkout.
 ASDLGEN=	@ASDLGEN@ $(srcdir)/Parser/asdl_c.py
 
 ##########################################################################
@@ -1500,7 +1501,10 @@
 	etags Include/*.h; \
 	for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
 
-# Touch generated files
+# This fixes up the mtimes of checked-in generated files, assuming that they
+# only *appear* to be outdated because of checkout order.
+# This is run while preparing a source release tarball, and can be run manually
+# to avoid bootstrap issues.
 touch:
 	cd $(srcdir); \
 	hg --config extensions.touch=Tools/hg/hgtouch.py touch -v

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list