voxforge.org
VoxForge Dev

Changeset 2373

Show
Ignore:
Timestamp:
12/26/07 14:32:03 (1 year ago)
Author:
kmaclean
Message:

added code to remove random numbers from SpeechSubmision? app zip filenames

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/Scripts/Audio_scripts/UserSubmission.pm

    r2263 r2373  
    138138                        my ($filename,$path,$suffix) = fileparse($line,@suffixlist); 
    139139                        if (($suffix eq "zip") or ($suffix  eq "tgz") or ($suffix  eq "tar\.gz") ) { 
     140# !!!!!! 
     141                                if ($line =~ /\[.*\]/) { 
     142                                        my $newDirectoryName = $line; 
     143                                        $newDirectoryName =~ s/\[.*\]//; 
     144                                        $command = ("mv $Dir/$line $Dir/$newDirectoryName"); system($command); 
     145                                        $line = $newDirectoryName; 
     146                                }  
    140147                                push @tarlist,$line; 
     148#                               push @tarlist,$line; 
     149# !!!!!!                                 
    141150                        } elsif ($suffix eq "" ) {  
    142151                                print "UserSubValidation:$filename: is likely a directory name ... skipping\n";