Don't install test.pl files.
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sat, 31 May 2003 18:48:59 +0000 (18:48 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sat, 31 May 2003 18:48:59 +0000 (18:48 +0000)
p4raw-id: //depot/perl@19651

installperl

index 95f9793..17d1b39 100755 (executable)
@@ -754,8 +754,8 @@ sub installlib {
     }
 
     # ignore patch backups, RCS files, emacs backup & temp files and the
-    # .exists files, .PL files, and .t files.
-    return if $name =~ m{\.orig$|\.rej$|~$|^#.+#$|,v$|^\.exists|\.PL$|\.t$} ||
+    # .exists files, .PL files, and test files.
+    return if $name =~ m{\.orig$|\.rej$|~$|^#.+#$|,v$|^\.exists|\.PL$|\.t$|^test\.pl$} ||
              $dir  =~ m{/t(?:/|$)};
     # ignore the cpan script in lib/CPAN/bin (installed later with other utils)
     return if $name eq 'cpan';