Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a3e396

Browse files
committed
Closes #21480: better explanation of "hg touch" in the Makefile.
1 parent f6d6dc2 commit 2a3e396

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Makefile.pre.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ AST_C= $(AST_C_DIR)/Python-ast.c
336336
AST_ASDL= $(srcdir)/Parser/Python.asdl
337337

338338
ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
339-
# XXX Note that a build now requires Python exist before the build starts
339+
# Note that a build now requires Python to exist before the build starts.
340+
# Use "hg touch" to fix up screwed up file mtimes in a checkout.
340341
ASDLGEN= @ASDLGEN@ $(srcdir)/Parser/asdl_c.py
341342

342343
##########################################################################
@@ -1500,7 +1501,10 @@ TAGS::
15001501
etags Include/*.h; \
15011502
for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
15021503

1503-
# Touch generated files
1504+
# This fixes up the mtimes of checked-in generated files, assuming that they
1505+
# only *appear* to be outdated because of checkout order.
1506+
# This is run while preparing a source release tarball, and can be run manually
1507+
# to avoid bootstrap issues.
15041508
touch:
15051509
cd $(srcdir); \
15061510
hg --config extensions.touch=Tools/hg/hgtouch.py touch -v

0 commit comments

Comments
 (0)