From 3e17788fbdc2b54658506f8b6a3a601d40d4673e Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Mon, 15 Nov 2021 11:35:48 -0500 Subject: [PATCH] Make Nomulus compile on macOS (#1421) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- This change is [Reviewable](https://reviewable.io/reviews/google/nomulus/1421) --- core/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/build.gradle b/core/build.gradle index bb5ff2abe..1ad2e9743 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -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() } } }