aboutsummaryrefslogtreecommitdiff
path: root/Makefile.PL
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-10-19 12:59:53 -0400
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-10-19 13:07:34 -0400
commit9f04f8ccc58d8389efac84afe859b08edb8d4518 (patch)
tree4ba654d94a1004c0dfb643de1b18b7d89ad961ff /Makefile.PL
parentf47af2b8c488f3426edd8181f72bf2177e267c73 (diff)
downloadikiwiki-9f04f8ccc58d8389efac84afe859b08edb8d4518.tar
ikiwiki-9f04f8ccc58d8389efac84afe859b08edb8d4518.tar.gz
Match word boundary (think "/usr/bin/perl5.18").
Diffstat (limited to 'Makefile.PL')
-rwxr-xr-xMakefile.PL4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 61fe336b8..312a1482c 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -63,7 +63,7 @@ docwiki:
perl_shebangs:
ifneq "$(PERL)" "/usr/bin/perl"
for file in $(shebang_scripts); do \
- $(SED) -e "1s|^#!/usr/bin/perl|#!$(PERL)|" < $$file > "$$file.new"; \
+ $(PERL) -pe "s|^#!/usr/bin/perl\b|#!$(PERL)| if 1" < $$file > "$$file.new"; \
[ -x $$file ] && chmod +x "$$file.new"; \
mv -f "$$file.new" $$file; \
done
@@ -72,7 +72,7 @@ endif
perl_shebangs_clean:
ifneq "$(PERL)" "/usr/bin/perl"
for file in $(shebang_scripts); do \
- $(SED) -e "1s|^#!$(PERL)|#!/usr/bin/perl|" < $$file > "$$file.new"; \
+ $(PERL) -pe "s|^#!$(PERL)\b|#!/usr/bin/perl| if 1" < $$file > "$$file.new"; \
[ -x $$file ] && chmod +x "$$file.new"; \
mv -f "$$file.new" $$file; \
done