From: Pavel Pisa Date: Sun, 16 Sep 2007 14:19:00 +0000 (+0000) Subject: Quoted default_CONFIG values extraction during default-config pass X-Git-Tag: v0.1~109 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/commitdiff_plain/8c1beea7fb666cabffa77684b5dde47c8e432e5c Quoted default_CONFIG values extraction during default-config pass processing. More complex values stored in default_CONFIG could previously trigger shell commands invocation. darcs-hash:20070916141948-ff715-4bce27e65dbae120d828db84cb61c581cef53d13.gz --- diff --git a/snippets/base b/snippets/base index afba9a6..f98b41d 100644 --- a/snippets/base +++ b/snippets/base @@ -173,6 +173,6 @@ $(eval $(call omk_pass_template,default-config-pass,$$(LOCAL_BUILD_DIR),,always) default-config-pass-local: # @echo Default config for $(RELATIVE_DIR) @echo "# Config for $(RELATIVE_DIR)" >> "$(CONFIG_FILE)-default" - @$(foreach x, $(default_CONFIG), echo $(x) | \ - sed -e 's/^.*=x$$/#\0/' >> "$(CONFIG_FILE)-default" ; ) + @$(foreach x, $(default_CONFIG), echo '$(x)' | \ + sed -e 's/^[^=]*=x$$/#\0/' >> "$(CONFIG_FILE)-default" ; )