aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authornevar <[email protected]>2016-08-08 14:23:16 +0700
committerLoïc Hoguin <[email protected]>2016-10-19 18:23:10 +0200
commitda05859f4bef76b8b933c65ee764c48a97b4baf5 (patch)
treeea47f4c393606ada8066f430d4d002468bb4c3c7 /core
parentfc7f6acd00331b09217fe733b89c620771fdabd5 (diff)
downloaderlang.mk-da05859f4bef76b8b933c65ee764c48a97b4baf5.tar.gz
erlang.mk-da05859f4bef76b8b933c65ee764c48a97b4baf5.tar.bz2
erlang.mk-da05859f4bef76b8b933c65ee764c48a97b4baf5.zip
Escape % in app_file template
Diffstat (limited to 'core')
-rw-r--r--core/erlc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/erlc.mk b/core/erlc.mk
index ed9aa88..9db10e1 100644
--- a/core/erlc.mk
+++ b/core/erlc.mk
@@ -243,7 +243,7 @@ ebin/$(PROJECT).app:: $(ERL_FILES) $(CORE_FILES) $(wildcard src/$(PROJECT).app.s
$(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
$(filter-out $(ERLC_EXCLUDE_PATHS),$(ERL_FILES) $(CORE_FILES) $(BEAM_FILES)))))))
ifeq ($(wildcard src/$(PROJECT).app.src),)
- $(app_verbose) printf '$(subst $(newline),\n,$(subst ','\'',$(call app_file,$(GITDESCRIBE),$(MODULES))))' \
+ $(app_verbose) printf '$(subst %,%%,$(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 \