Skip to content

Commit 674c464

Browse files
authored
Merge pull request #268 from rabbitmq/windows-line-endings-for-batch-scripts
Use windows line endings for batch scripts
2 parents 0c045a7 + b45bb6e commit 674c464

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

private/ct.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ exit /b %CT_RUN_ERRORLEVEL%
291291
sname = sname(ctx),
292292
extra_args = " ".join(extra_args),
293293
test_env = "\n".join(test_env_commands),
294-
)
294+
).replace("\n", "\r\n")
295295

296296
ctx.actions.write(
297297
output = output,

private/dialyze.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ EXIT /B 1
8989
dirs = " ".join(dirs),
9090
opts = " ".join(ctx.attr.dialyzer_opts),
9191
check_warnings = "if %ERRORLEVEL% EQU 2 EXIT /B 0" if not ctx.attr.warnings_as_errors else "",
92-
)
92+
).replace("\n", "\r\n")
9393

9494
ctx.actions.write(
9595
output = output,

private/erlang_xrl_yrl.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ erlang_xrl_yrl = rule(
8585
),
8686
},
8787
toolchains = ["//tools:toolchain_type"],
88-
)
88+
)

private/eunit.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ echo on
188188
eunit_mods_term = _to_atom_list(eunit_mods),
189189
eunit_opts_term = eunit_opts_term,
190190
test_env = "\n".join(test_env_commands),
191-
)
191+
).replace("\n", "\r\n")
192192

193193
ctx.actions.write(
194194
output = output,

private/shell.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ echo on
5555
erlang_home = windows_path(erlang_home),
5656
erl_libs_path = windows_path(erl_libs_path),
5757
extra_erl_args = " ".join(ctx.attr.extra_erl_args),
58-
)
58+
).replace("\n", "\r\n")
5959

6060
ctx.actions.write(
6161
output = output,

private/xref.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ echo on
8080
erlang_home = windows_path(erlang_home),
8181
xrefr = windows_path(xrefr_path),
8282
config_path = windows_path(config_file.short_path),
83-
)
83+
).replace("\n", "\r\n")
8484

8585
ctx.actions.write(
8686
output = output,

private/xref2.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if NOT [{package}] == [] cd {package}
145145
erl_libs_path = erl_libs_path,
146146
xref_erl = xref_erl,
147147
package = ctx.label.package,
148-
)
148+
).replace("\n", "\r\n")
149149

150150
ctx.actions.write(
151151
output = output,
@@ -248,7 +248,7 @@ set QUERY=%1%
248248
erl_libs_path = windows_path(erl_libs_path),
249249
package = ctx.label.package,
250250
xref_erl = xref_erl,
251-
)
251+
).replace("\n", "\r\n")
252252

253253
ctx.actions.write(
254254
output = output,

0 commit comments

Comments
 (0)