From: Amitai Schlair Date: Fri, 19 Sep 2014 04:53:16 +0000 (-0400) Subject: Anchor subst to opening ", avoiding side effects. X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/053de5489bb2a00855f46b131fe676cc3bc94579 Anchor subst to opening ", avoiding side effects. SYSCONFDIR might be overridden to a value containing "etc/ikiwiki", in which case we might overzealously substitute more than once, especially if SYSCONFDIR is overridden to different values at build and install time. Avoid this by matching only the instances we meant to match. --- diff --git a/Makefile.PL b/Makefile.PL index ad3e4623c..13ed103c7 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -60,7 +60,7 @@ docwiki: $(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.in -setup docwiki.setup -refresh sysconfdir: - $(PERL) -pi -e "s|/etc/ikiwiki|$(SYSCONFDIR)|g" $(sysconfdir_scripts) + $(PERL) -pi -e "s|\"/etc/ikiwiki|\"$(SYSCONFDIR)|g" $(sysconfdir_scripts) extra_clean: $(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.in -setup docwiki.setup -clean