From: Martin Panter Date: Tue, 7 Jun 2016 01:07:32 +0000 (+0000) Subject: Issue #27229: Comment in middle of shell command fails on BSD and OS X X-Git-Tag: v2.7.12rc1~14^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed722d9e39199af08dbd7bb6cf62c9720ae5094a;p=thirdparty%2FPython%2Fcpython.git Issue #27229: Comment in middle of shell command fails on BSD and OS X --- diff --git a/Makefile.pre.in b/Makefile.pre.in index dd3db0461c56..dffc0b997311 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -682,10 +682,10 @@ Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN) @$(MKDIR_P) Include + # Avoid copying the file onto itself for an in-tree build if test "$(cross_compiling)" != "yes"; then \ $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \ else \ - # Avoid copying the file onto itself for an in-tree build \ cp $(srcdir)/Include/graminit.h $(GRAMMAR_H).tmp; \ mv $(GRAMMAR_H).tmp $(GRAMMAR_H); \ fi