Restrict overly broad searches, and fix typo, in recent fix. Per Hannes Eder.
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 23 Sep 2007 20:32:40 +0000 (20:32 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 23 Sep 2007 20:32:40 +0000 (20:32 +0000)
src/tools/msvc/Install.pm

index 6471b243dbcfd5200e7de24036f4d0072b12d4a7..ae7329c9b4cd2e5eec93167820de5fe4d8b49ea1 100644 (file)
@@ -50,7 +50,7 @@ sub Install
                                                                        push(@$sample_files, $File::Find::name); 
                                                        } 
                                  }, 
-                                        "../.." );
+                                        "src" );
     CopySetOfFiles('config files', $sample_files , $target . '/share/');
     CopyFiles(
         'Import libraries',
@@ -81,7 +81,7 @@ sub Install
                                   [ glob ("src\\backend\\snowball\\stopwords\\*.stop") ], 
                                   $target . '/share/tsearch_data/');
     CopySetOfFiles('Dictionaries sample files', 
-                                  [ glob ("src\\backend\\tsearch\\\*_sample.*" ) ], 
+                                  [ glob ("src\\backend\\tsearch\\*_sample.*" ) ], 
                                   $target . '/share/tsearch_data/');
     CopyContribFiles($config,$target);
     CopyIncludeFiles($target);
@@ -424,7 +424,6 @@ sub GenerateNLSFiles
 {
     my $target = shift;
     my $nlspath = shift;
-    my $D;
 
     print "Installing NLS files...";
     EnsureDirectories($target, "share/locale");
@@ -433,7 +432,7 @@ sub GenerateNLSFiles
                                                  sub { /^nls\.mk\z/s && 
                                                                        !                                                                       push(@flist, $File::Find::name);        
                                                        } 
-                                 }, ".");
+                                 }, "src");
     foreach (@flist)
     {
         s/nls.mk/po/;