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

Don't autopatch if rebar is mentioned in comments

Loïc Hoguin 8 лет назад
Родитель
Сommit
a8fffe130e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      core/deps.mk

+ 2 - 2
core/deps.mk

@@ -111,9 +111,9 @@ define dep_autopatch
 	elif [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
 		if [ 0 != `grep -c "include ../\w*\.mk" $(DEPS_DIR)/$(1)/Makefile` ]; then \
 			$(call dep_autopatch2,$(1)); \
-		elif [ 0 != `grep -ci rebar $(DEPS_DIR)/$(1)/Makefile` ]; then \
+		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 -exec 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 \
 			$(call erlang,$(call dep_autopatch_app.erl,$(1))); \