1

In my scripts, I have a point where I want to copy ONLY the .csv files from my current build over to another folder. I currently have...

svn copy $repoName/*.csv $targetRepo

But I really didn't expect that to work. However, that is essentially what I want to accomplish. Does SVN have a way to copy only certain types of files? If not, what direction could I go in to possibly do that?

(Helpful?: this is all being done through automated Perl scripts.)

4

1 に答える 1

0

私は解決策を見つけました。少し強引ですが、効きそうです。ここに私のPerlコードがあります:

system("svn list $repoName --depth infinity | find \".csv\" >> csvs.txt");
open FILE, "limits.txt" or die $!;
while (my $line = <FILE>){      
   system("svn copy".$line." $targetRepo");
}   
close FILE;
system("del /s /q csvs.txt");

ここではかなり単純化しましたが、基本的にはすべての .csv を見つけてリストに入れ、それらのファイルを 1 つずつコピーするだけです。

于 2012-05-31T14:38:15.733 に答える