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
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
-Please consider this [patch] for merging in.
+Please consider this [[patch]] for merging in.
[[!format diff """
From e697ba4ef7952ce549d449c4e4daea2e3f0a1aa7 Mon Sep 17 00:00:00 2001
From: Nikolay Orlyuk <virkony@gmail.com>
--
2.1.2
"""]]
+
+[[Done]], but this word-boundary construct didn't work on at least
+one of my systems, so now we're using `$(PERL)` to do the job
+portably.