]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Quoted default_CONFIG values extraction during default-config pass
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 16 Sep 2007 14:19:00 +0000 (14:19 +0000)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 16 Sep 2007 14:19:00 +0000 (14:19 +0000)
processing.

More complex values stored in default_CONFIG could previously trigger
shell commands invocation.

darcs-hash:20070916141948-ff715-4bce27e65dbae120d828db84cb61c581cef53d13.gz

snippets/base

index afba9a686d218359578ed59020f625fb2594c0e5..f98b41d9490c6a1d0257a381e281abf03ad0ba24 100644 (file)
@@ -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" ; )