Revert "fix hosts"
This reverts commit ea32b6a7b0
.
As there is a way to upgrade GNU Make on macOS, this change is not needed.
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
1818199ffc
commit
3c571faab6
1 changed files with 9 additions and 4 deletions
13
Makefile
13
Makefile
|
@ -52,11 +52,16 @@ down:
|
||||||
$(foreach SVC, $(STOP_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml down))
|
$(foreach SVC, $(STOP_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml down))
|
||||||
|
|
||||||
.PHONY: vendor/hosts
|
.PHONY: vendor/hosts
|
||||||
|
.ONESHELL:
|
||||||
vendor/hosts:
|
vendor/hosts:
|
||||||
@for file in $(HOSTS_LINES); do \
|
@for file in $(HOSTS_LINES)
|
||||||
while read h; do \
|
do
|
||||||
echo $${h}| sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'; \
|
while read h
|
||||||
done < $${file}; \
|
do
|
||||||
|
echo $${h} | \
|
||||||
|
sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | \
|
||||||
|
sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'
|
||||||
|
done < $${file};
|
||||||
done > $@
|
done > $@
|
||||||
|
|
||||||
# Display changes for /etc/hosts
|
# Display changes for /etc/hosts
|
||||||
|
|
Loading…
Reference in a new issue