Fix `make setup dos' (#52622). * builds/detect.mk (dos_setup): Properly escape literal `>' character.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/ChangeLog b/ChangeLog
index bc39aca..4f4e2ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-12-08 Werner Lemberg <wl@gnu.org>
+
+ Fix `make setup dos' (#52622).
+
+ * builds/detect.mk (dos_setup): Properly escape literal `>'
+ character.
+
2017-12-07 Werner Lemberg <wl@gnu.org>
Fix C++ compilation.
diff --git a/builds/detect.mk b/builds/detect.mk
index 4ed478e..e5100a6 100644
--- a/builds/detect.mk
+++ b/builds/detect.mk
@@ -131,6 +131,9 @@ std_setup:
# Special case for Dos, Windows, OS/2, where echo "" doesn't work correctly!
#
+# For `cmd.exe', we have to escape (unquoted) special characters like `>' as
+# `^>', and we use 0xFF as a replacement character for a protected space.
+#
dos_setup:
@type builds$(SEP)newline
@echo $(PROJECT_TITLE) build system -- automatic system detection
@@ -146,7 +149,7 @@ dos_setup:
@echo '$(CONFIG_MK)' from this directory then read the INSTALL file for help.
@type builds$(SEP)newline
@echo Otherwise, simply type 'make' again to build the library.
- @echo or 'make refdoc' to build the API reference (this needs python >= 2.6).
+ @echo or 'make refdoc' to build the API reference (this needs python ^>= 2.6).
@type builds$(SEP)newline
@$(COPY) $(subst /,$(SEP),$(CONFIG_RULES) $(CONFIG_MK)) > nul