From b55d1ced4b4f60f2037ca8ba2f91a1037fb5b1d7 Mon Sep 17 00:00:00 2001 From: miltalex Date: Mon, 4 Jan 2021 15:04:44 +0100 Subject: [PATCH] Replace sed with perl in makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 778c56230..d1b89c180 100644 --- a/Makefile +++ b/Makefile @@ -135,7 +135,7 @@ vendor: # we insert a go_package specification into the ODC protofile right # after we download it. @echo -e "\033[1;33mpatch odc.proto\033[0m" - @sed -i '/^package/a option go_package = "odcprotos;odc";' odcshim/odcprotos/odc.proto + @perl -pi -e '$$_.="option go_package = \"odcprotos;odc\";\n" if (/^package/)' odcshim/odcprotos/odc.proto # vendor: tools/dep # @echo -e "\033[1;33mdep ensure\033[0m"