Issue #27229: Comment in middle of shell command fails on BSD and OS X

This commit is contained in:
Martin Panter 2016-06-07 01:07:32 +00:00
parent 9c2a8f97da
commit 6827fd867b
1 changed files with 1 additions and 1 deletions

View File

@ -790,10 +790,10 @@ $(IO_OBJS): $(IO_H)
$(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