mirror of
https://github.com/bebbo/amiga-gcc.git
synced 2025-12-08 22:38:25 +00:00
Merge pull request #276 from simpsond/master
fix for Mac, use gsed for parsing .repos
This commit is contained in:
@@ -31,9 +31,9 @@ endif
|
|||||||
|
|
||||||
# get git urls and branches from .repos file
|
# get git urls and branches from .repos file
|
||||||
$(shell [ ! -f .repos ] && cp default-repos .repos)
|
$(shell [ ! -f .repos ] && cp default-repos .repos)
|
||||||
modules := $(shell cat .repos | sed -e 's/[[:blank:]]\+/ /g' | cut -d' ' -f1)
|
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_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)
|
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)_URL=$(call get_url,$(modu))))
|
||||||
$(foreach modu,$(modules),$(eval $(modu)_BRANCH=$(call get_branch,$(modu))))
|
$(foreach modu,$(modules),$(eval $(modu)_BRANCH=$(call get_branch,$(modu))))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user