1
0
mirror of https://github.com/google/nomulus synced 2026-01-07 05:56:49 +00:00

Make Nomulus compile on macOS (#1421)

BSD sed requires a parameter to -i to indicate the backup suffix. By
adding a blank suffix the sed command works on both Linux and macOS.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1421)
<!-- Reviewable:end -->
This commit is contained in:
Lai Jiang
2021-11-15 11:35:48 -05:00
committed by GitHub
parent a59f09e011
commit c84767bd07

View File

@@ -470,7 +470,7 @@ task soyToJava {
outputs.each { file ->
exec {
commandLine 'sed', '-i', 's/@link/LINK/g', file.getCanonicalPath()
commandLine 'sed', '-i""', '-e', 's/@link/LINK/g', file.getCanonicalPath()
}
}
}