From df92eb8859315852b1bcef23f840b0d19899155b Mon Sep 17 00:00:00 2001 From: Dustin Simpson Date: Mon, 25 Apr 2022 21:06:09 -0700 Subject: [PATCH] fix for Mac, use gsed for parsing .repos --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 80dd1fc..510ca92 100644 --- a/Makefile +++ b/Makefile @@ -31,9 +31,9 @@ endif # get git urls and branches from .repos file $(shell [ ! -f .repos ] && cp default-repos .repos) -modules := $(shell cat .repos | sed -e 's/[[:blank:]]\+/ /g' | cut -d' ' -f1) -get_url = $(shell grep $(1) .repos | sed -e 's/[[:blank:]]\+/ /g' | cut -d' ' -f2) -get_branch = $(shell grep $(1) .repos | sed -e 's/[[:blank:]]\+/ /g' | cut -d' ' -f3) +modules := $(shell cat .repos | $(SED) -e 's/[[:blank:]]\+/ /g' | cut -d' ' -f1) +get_url = $(shell grep $(1) .repos | $(SED) -e 's/[[:blank:]]\+/ /g' | cut -d' ' -f2) +get_branch = $(shell grep $(1) .repos | $(SED) -e 's/[[:blank:]]\+/ /g' | cut -d' ' -f3) $(foreach modu,$(modules),$(eval $(modu)_URL=$(call get_url,$(modu)))) $(foreach modu,$(modules),$(eval $(modu)_BRANCH=$(call get_branch,$(modu))))