Merge "Fix the issue "\n" didn't get interpreted properly."
am: 2c13abc95e
Change-Id: I8c0dbf8147007d39ba36f711885d4e25b2c83b70
This commit is contained in:
commit
cd2338ec78
2 changed files with 5 additions and 2 deletions
|
@ -80,9 +80,12 @@ var (
|
|||
Description: "concatenate licenses $out",
|
||||
})
|
||||
|
||||
// ubuntu 14.04 offcially use dash for /bin/sh, and its builtin echo command
|
||||
// doesn't support -e option. Therefore we force to use /bin/bash when writing out
|
||||
// content to file.
|
||||
WriteFile = pctx.AndroidStaticRule("WriteFile",
|
||||
blueprint.RuleParams{
|
||||
Command: "echo '$content' > $out",
|
||||
Command: "/bin/bash -c 'echo -e $$0 > $out' '$content'",
|
||||
Description: "writing file $out",
|
||||
},
|
||||
"content")
|
||||
|
|
|
@ -82,7 +82,7 @@ func registerBuildActionForModuleFileList(ctx android.ModuleContext,
|
|||
Output: fileList,
|
||||
Implicits: files,
|
||||
Args: map[string]string{
|
||||
"content": strings.Join(content, "\n"),
|
||||
"content": strings.Join(content, `\n`),
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue