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>
wallet-connect
Stanislav Bogatyrev 2021-01-13 13:25:37 +03:00 committed by Stanislav Bogatyrev
parent 1818199ffc
commit 3c571faab6
1 changed files with 9 additions and 4 deletions

View File

@ -52,11 +52,16 @@ down:
$(foreach SVC, $(STOP_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml down))
.PHONY: vendor/hosts
.ONESHELL:
vendor/hosts:
@for file in $(HOSTS_LINES); do \
while read h; do \
echo $${h}| sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'; \
done < $${file}; \
@for file in $(HOSTS_LINES)
do
while read h
do
echo $${h} | \
sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | \
sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'
done < $${file};
done > $@
# Display changes for /etc/hosts