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

Merge branch 'fix_grep' of https://github.com/ingwinlu/erlang.mk

Loïc Hoguin 9 лет назад
Родитель
Сommit
6e5ff123ae
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/erlc.mk

+ 1 - 1
core/erlc.mk

@@ -244,7 +244,7 @@ ifeq ($(wildcard src/$(PROJECT).app.src),)
 	$(app_verbose) printf "$(subst $(newline),\n,$(subst ",\",$(call app_file,$(GITDESCRIBE),$(MODULES))))" \
 		> ebin/$(PROJECT).app
 else
-	$(verbose) if [ -z "$$(grep -E '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \
+	$(verbose) if [ -z "$$(grep -e '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \
 		echo "Empty modules entry not found in $(PROJECT).app.src. Please consult the erlang.mk README for instructions." >&2; \
 		exit 1; \
 	fi