Skip to content

Commit cf257a1

Browse files
authored
Merge pull request #64 from rabbitmq/escape-tilde-in-escript-name
Allow ~ in the name of escripts
2 parents eb50e6c + adaa42e commit cf257a1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

private/escript_archive.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _impl(ctx):
7171
7272
"{erlang_home}"/bin/erl \\
7373
-noshell \\
74-
-eval 'io:format("Assembling {name} escript...~n", []),
74+
-eval 'io:format("Assembling ~s escript...~n", ["{name}"]),
7575
ArchiveEntries = [begin
7676
{{ok, Bin}} = file:read_file(Path),
7777
{{Name, Bin}}

private/escript_flat.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ def _impl(ctx):
1515
body = "{{beam,\"{}\"}}".format(ctx.file.beam.path)
1616

1717
args = ctx.actions.args()
18-
args.add("""io:format("Assembiling {out} escript...~n", []),
19-
ok = escript:create("{out}",
18+
args.add("""EscriptPath = "{out}",
19+
io:format("Assembiling ~s escript...~n", [EscriptPath]),
20+
ok = escript:create(EscriptPath,
2021
[shebang, comment,
2122
{body}]),
2223
io:format("done.~n", []),

0 commit comments

Comments
 (0)