]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Anchor subst to opening ", avoiding side effects.
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Fri, 19 Sep 2014 04:53:16 +0000 (00:53 -0400)
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Fri, 19 Sep 2014 04:53:16 +0000 (00:53 -0400)
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.

Makefile.PL

index ad3e4623c8a9acf41c58a1301964d50dec8f31fa..13ed103c7a077702a6ced45533e00ed1f121dc5f 100755 (executable)
@@ -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