perl: Also strip begin, end and for pragmas
Signed-off-by: Marcel Denia <naoir@gmx.net>
This commit is contained in:
parent
671a43167f
commit
1549919b71
1 changed files with 2 additions and 2 deletions
|
@ -128,8 +128,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\|encoding\)/,/^=cut/d' \
|
||||
-e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,$$$$d' \
|
||||
-e '/^=\(head\|pod\|item\|over\|back\|encoding\|begin\|end\|for\)/,/^=cut/d' \
|
||||
-e '/^=\(head\|pod\|item\|over\|back\|encoding\|begin\|end\|for\)/,$$$$d' \
|
||||
-e '/^#$$$$/d' \
|
||||
-e '/^#[^!"'"'"']/d'
|
||||
endef
|
||||
|
|
Loading…
Reference in a new issue