Don't escape quotes chars in the Makefiles for Windows

parent 93ca04b5
......@@ -162,8 +162,6 @@ SYN_GRADE := ${syn_grade}
tcl_command.append(echo_command.format(command))
command_string = "\n".join(tcl_command)
if path_mod.check_windows():
command_string = command_string.replace(
path_mod.slash_char(), "")
command_string = command_string.replace(
"'", "")
self.writeln("""\
......
......@@ -170,7 +170,10 @@ class ToolMakefile(object):
"""Write a string in the manifest, no new line"""
if not self._initialized:
self.initialize()
self._file.write(line)
if path_mod.check_windows():
self._file.write(line.replace('\\"', '"'))
else:
self._file.write(line)
def writeln(self, text=None):
"""Write a string in the manifest, automatically add new line"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment