Browse Source

lang/perl: Strip encoding pragma

The "encoding" pragma is officially deprecated.
Makes HTML::Parser/HTML::Entities work.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lilik-openwrt-22.03
Marcel Denia 10 years ago
parent
commit
3e7876c22f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lang/perl/perlmod.mk

+ 2
- 2
lang/perl/perlmod.mk View File

@ -89,8 +89,8 @@ define perlmod/Install
@echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)"
find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \
xargs -r sed -i \
-e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d' \
-e '/^=\(head\|pod\|item\|over\|back\)/,$$$$d' \
-e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,/^=cut/d' \
-e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,$$$$d' \
-e '/^#$$$$/d' \
-e '/^#[^!"'"'"']/d'
endef

Loading…
Cancel
Save