chiark / gitweb /
Makefile: Use `squote' when printing variable lists.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 11 Sep 2019 16:52:04 +0000 (17:52 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 11 Sep 2019 16:53:18 +0000 (17:53 +0100)
Makefile

index 2b747dd5e7edc57354ff322d9834b8c3e01cda4f..f53df2c66d613d531f782c5566c76aa53917ee09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -437,8 +437,8 @@ check::; $(call check-symlink,ERR,/schroot,/run/schroot/mount)
 
 %print-varlist          = { \
        echo "\#\#\# -*-sh-*- GENERATED by distorted-chroot: do not edit"; \
-       $(foreach v,$1, echo $v=\''$(subst ','\'\\\'\'',$($v))'\';) \
-} #'
+       $(foreach v,$1, echo $v=\'$(call squote,$($v))\';) \
+}
 schroot-config_HASH    := \
        $(shell $(call %print-varlist,$(CONFIG_VARS)) | \
                sha256sum | cut -c1-32)