voxforge.org
VoxForge Dev

Changeset 2362

Show
Ignore:
Timestamp:
11/27/07 22:20:02 (1 year ago)
Author:
kmaclean
Message:

adding some debug information

Files:

Legend:

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

    r2354 r2362  
    4848        $command = ("svn copy $path_original/$audio_dir_name $path_main/$audio_dir_name"); print "$command\n" if $debug; system($command) == 0 or confess "system $command failed: $?"; 
    4949# !!!!!! 
    50         sleep(60); # to try to address a problem (when there are multiple submissions) where there are two copies of the new Main subdirectory ... one inside the other (usually Main/8kHz) 
     50        sleep(60); # to try to address a problem (when there are multiple submissions) where there are two copies of the new Main subdirectory ... one inside the other (usually in Main/8kHz) 
    5151        # need to check to see which one got downsampled (both or the inside directory one ... if the latter, then it's problem with Downsample script)   
    5252# !!!!!! 
  • Trunk/Scripts/Audio_scripts/UserSubmission/AUDIO.pm

    r2361 r2362  
    123123                my $debug = $$parms{"debug"}; 
    124124                my $QuarantineDir = $$parms{"QuarantineDir"};    
    125                 $command = ("flac -d $QuarantineDir/$audio_dir_name/*.flac"); print "$command\n" if $debug; system($command) == 0 or confess "system $command failed: $?";  
     125                if ($debug) { 
     126                        $command = ("flac -d $QuarantineDir/$audio_dir_name/*.flac"); print "$command\n" if $debug; system($command) == 0 or confess "system $command failed: $?"; 
     127                } else {                 
     128                        $command = ("flac -d -s $QuarantineDir/$audio_dir_name/*.flac"); print "$command\n" if $debug; system($command) == 0 or confess "system $command failed: $?"; 
     129                }                 
    126130                $command = ("mkdir $QuarantineDir/$audio_dir_name/flac");  print "$command\n" if $debug; system($command);               
    127131                $command = ("mv -f $QuarantineDir/$audio_dir_name/*.flac $QuarantineDir/$audio_dir_name/flac"); print "$command\n" if $debug;   system($command) == 0 or confess "system $command failed: $?";