Просмотр исходного кода

The '-r' option of 'xargs' is illegal on OSX

Andrei Nesterov 10 лет назад
Родитель
Сommit
7da80c28df
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/deps.mk

+ 1 - 1
core/deps.mk

@@ -67,7 +67,7 @@ define dep_autopatch
 			$(call dep_autopatch2,$(1)); \
 		elif [ 0 != `grep -ci rebar $(DEPS_DIR)/$(1)/Makefile` ]; then \
 			$(call dep_autopatch2,$(1)); \
-		elif [ -n "`find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk | xargs -r grep -i rebar`" ]; then \
+		elif [ -n "`find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk -exec grep -i rebar '{}' \;`" ]; then \
 			$(call dep_autopatch2,$(1)); \
 		else \
 			if [ -f $(DEPS_DIR)/$(1)/erlang.mk ]; then \