Commit 99df4919fda69e02f3253f6d843903120404a994

Werner Lemberg 2017-12-08T09:48:18

Fix `make setup dos' (#52622). * builds/detect.mk (dos_setup): Properly escape literal `>' character.

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