This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't install demo files with perl
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 27 Jun 2005 21:57:04 +0000 (21:57 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 27 Jun 2005 21:57:04 +0000 (21:57 +0000)
p4raw-id: //depot/perl@25000

installperl

index a707954..04d778e 100755 (executable)
@@ -812,6 +812,8 @@ sub installlib {
     return if $name =~ /^makefile$/i;
     # ignore the test extensions
     return if $dir =~ m{ext/XS/(?:APItest|Typemap)/};
+    # ignore the demo files
+    return if $dir =~ /\bdemos?\b/;
 
     # ignore READMEs, MANIFESTs, INSTALL docs, META.ymls and change logs.
     # Changes.e2x and README.e2x are needed by enc2xs.