perl: Also strip begin, end and for pragmas
authorMarcel Denia <naoir@gmx.net>
Thu, 21 Aug 2014 14:31:17 +0000 (16:31 +0200)
committerMarcel Denia <naoir@gmx.net>
Thu, 6 Nov 2014 07:18:42 +0000 (08:18 +0100)
Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl/perlmod.mk

index 928944c5b8ad0d37b7775951e4848c4c34b74973..e8706dc6a087e81b4f5fd95ecde79c58f4f74caa 100644 (file)
@@ -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